Skip to content

Instantly share code, notes, and snippets.

Minifying JS
// ...
if (isDevelopment === false) {
plugins = plugins.concat([
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,
},
output: {
comments: false,
},
}),
]);
}
// ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment