fix(webpack): fix bug with lodash

pull/2670/head
Chaim Lev-Ari 2018-11-29 09:54:26 +02:00
parent 4accf4a4c7
commit f538e4e626
1 changed files with 3 additions and 1 deletions

View File

@ -107,7 +107,9 @@ module.exports = {
new CleanWebpackPlugin(['dist/public']), new CleanWebpackPlugin(['dist/public']),
new IgnorePlugin(/^\.\/locale$/, /moment$/), new IgnorePlugin(/^\.\/locale$/, /moment$/),
// new BundleAnalyzerPlugin() // new BundleAnalyzerPlugin()
new LodashModuleReplacementPlugin() new LodashModuleReplacementPlugin({
shorthands: true
})
], ],
optimization: { optimization: {
splitChunks: { splitChunks: {