I think we need to add [more compress options in UglifyJsPlugin plugin](https://github.com/mishoo/UglifyJS2#compressor-options), this will result in a more compact build. my suggestion is: new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false, screw_ie8: true, conditionals: true, unused: true, comparisons: true, sequences: true, dead_code: true, evaluate: true, if_return: true, join_vars: true, }, mangle: { screw_ie8: true }, output: { comments: false, screw_ie8: true } })
Activity
gaearon commentedon Feb 26, 2017
Send a PR and let's discuss?
shai32 commentedon Feb 26, 2017
Ok
Timer commentedon Mar 7, 2017
@shai32 are you still interested in this? 😄
shai32 commentedon Mar 8, 2017
Yes, Still interesting. Hopefully I will do a PR in the weekend
shai32 commentedon Mar 24, 2017
All the added options are enabled by default. See UglifyJS documentation.
So we can close this issue