Skip to content

Commit

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

* 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 05f3f5e commit 31a38b3
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/react-scripts/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 31a38b3

Please sign in to comment.