Created
October 31, 2017 10:30
-
-
Save marekpiechut/92bddd71c913cbc35cdbeabd4cc7b694 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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