From 31a38b34c409afd7be0a637b3d649462d05e86a5 Mon Sep 17 00:00:00 2001 From: Marco Fugaro <marco.fugaro@gmail.com> Date: Wed, 19 Apr 2017 12:40:42 +0200 Subject: [PATCH] removed options in UglifyJsPlugin which are equal to the defaults (#1993) * removed redundant already default options in UglifyJsPlugin * re-enabled remove comments Uglify option JSDoc-style comments weren't being removed --- packages/react-scripts/config/webpack.config.prod.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index 01e9d6fe7..f36c3d56b 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -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, }), -- GitLab