Webpack with scope hoisting
This commit is contained in:
parent
5e6cea63fb
commit
2a75d67be9
|
@ -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
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue