We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think we need to add more compress options in UglifyJsPlugin plugin, 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 } })
The text was updated successfully, but these errors were encountered:
Send a PR and let's discuss?
Sorry, something went wrong.
Ok
@shai32 are you still interested in this? 😄
Yes, Still interesting. Hopefully I will do a PR in the weekend
All the added options are enabled by default. See UglifyJS documentation. So we can close this issue
No branches or pull requests
I think we need to add more compress options in UglifyJsPlugin plugin,
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
}
})
The text was updated successfully, but these errors were encountered: