Created
May 31, 2018 06:14
-
-
Save jsartisan/08721dd1b684c963c538dd543f9540f1 to your computer and use it in GitHub Desktop.
Minifying JS
This file contains hidden or 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
// ... | |
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