From f0244e9c657ca6f875498a46f91d2761870ce531 Mon Sep 17 00:00:00 2001 From: Marco Fugaro Date: Tue, 18 Apr 2017 18:26:52 +0200 Subject: [PATCH 1/2] removed redundant already default options in UglifyJsPlugin --- packages/react-scripts/config/webpack.config.prod.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index 01e9d6fe796..d96e5b2cc56 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -258,16 +258,8 @@ 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, }), // Note: this won't work without ExtractTextPlugin.extract(..) in `loaders`. From 596a231530b0db7b3f2046c410a989b1101a6bba Mon Sep 17 00:00:00 2001 From: Marco Fugaro Date: Wed, 19 Apr 2017 11:42:59 +0200 Subject: [PATCH 2/2] re-enabled remove comments Uglify option JSDoc-style comments weren't being removed --- packages/react-scripts/config/webpack.config.prod.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index d96e5b2cc56..f36c3d56b1e 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -260,6 +260,9 @@ module.exports = { compress: { warnings: false, }, + output: { + comments: false, + }, sourceMap: true, }), // Note: this won't work without ExtractTextPlugin.extract(..) in `loaders`.