Skip to content

Commit

Permalink
removed options in UglifyJsPlugin which are equal to the defaults (fa…
Browse files Browse the repository at this point in the history
…cebook#1993)

* removed redundant already default options in UglifyJsPlugin

* re-enabled remove comments Uglify option

JSDoc-style comments weren't being removed
  • Loading branch information
marcofugaro authored and gaearon committed Apr 19, 2017
1 parent 2955244 commit ef63b0d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,10 @@ module.exports = {
// Minify the code.
new webpack.optimize.UglifyJsPlugin({
compress: {
screw_ie8: true, // React doesn't support IE8
warnings: false,
},
mangle: {
screw_ie8: true,
},
output: {
comments: false,
screw_ie8: true,
},
sourceMap: true,
}),
Expand Down

0 comments on commit ef63b0d

Please sign in to comment.