Minification fix #1693 (#1782)

This commit is contained in:
Eugenio Romano
2017-03-28 20:47:57 +01:00
committed by Mario Romano
parent cedeba9c55
commit ca36f02826
2 changed files with 12 additions and 10 deletions

View File

@@ -40,15 +40,18 @@ module.exports = webpackMerge(commonConfig, {
// Reference: http://webpack.github.io/docs/list-of-plugins.html#uglifyjsplugin
// Minify all javascript, switch loaders to minimizing mode
// new webpack.optimize.UglifyJsPlugin({
// mangle: {
// keep_fnames: true
// },
// compressor: {
// screw_ie8: true,
// warnings: false
// }
// }),
new webpack.optimize.UglifyJsPlugin({
output:{
comments: false
},
mangle: {
keep_fnames: true
},
compressor: {
screw_ie8: true,
warnings: false
}
}),
// Extract css files
// Reference: https://github.com/webpack/extract-text-webpack-plugin