Explorar o código

configure LodashModuleReplacementPlugin

Yuki Takei %!s(int64=8) %!d(string=hai) anos
pai
achega
b18954ad10
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      config/webpack.common.js

+ 3 - 1
config/webpack.common.js

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