Skip to content

Instantly share code, notes, and snippets.

@marekpiechut
Created October 31, 2017 10:30
Show Gist options
  • Save marekpiechut/92bddd71c913cbc35cdbeabd4cc7b694 to your computer and use it in GitHub Desktop.
Save marekpiechut/92bddd71c913cbc35cdbeabd4cc7b694 to your computer and use it in GitHub Desktop.
new webpack.optimize.UglifyJsPlugin({
mangle: true,
unused: true,
dead_code: true, // big one--strip code that will never execute
warnings: false, // good for prod apps so users can't peek behind curtain
drop_debugger: true,
conditionals: true,
evaluate: true,
drop_console: true, // strips console statements
sequences: true,
booleans: true,
compress: {
warnings: false, // Suppress uglification warnings
pure_getters: true,
unsafe: true,
unsafe_comps: true,
screw_ie8: true
},
output: {
comments: false,
},
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment