Browse Source

configure LodashModuleReplacementPlugin

Yuki Takei 7 years ago
parent
commit
b18954ad10
1 changed files with 3 additions and 1 deletions
  1. 3 1
      config/webpack.common.js

+ 3 - 1
config/webpack.common.js

@@ -117,7 +117,9 @@ module.exports = (options) => {
       // ignore
       new webpack.IgnorePlugin(/^\.\/lib\/deflate\.js/, /markdown-it-plantuml/),
 
-      new LodashModuleReplacementPlugin,
+      new LodashModuleReplacementPlugin({
+        flattening: true
+      }),
 
       new webpack.ProvidePlugin({ // refs externals
         jQuery: 'jquery',