Webpack with scope hoisting

This commit is contained in:
Lyubo Marinov 2017-09-07 20:06:34 -05:00
parent 5e6cea63fb
commit 2a75d67be9
1 changed files with 1 additions and 5 deletions

View File

@ -33,16 +33,12 @@ if (minimize) {
NODE_ENV: JSON.stringify('production')
}
}));
plugins.push(new webpack.optimize.ModuleConcatenationPlugin());
plugins.push(new webpack.optimize.UglifyJsPlugin({
compress: {
// It is nice to see warnings from UglifyJsPlugin that something is
// unused/removed.
warnings: true
},
extractComments: true,
// Use the source map to map error message locations to modules.
sourceMap: true
}));
}