diff --git a/config/webpack.config.web.js b/config/webpack.config.web.js index 9b57f1c..176d156 100644 --- a/config/webpack.config.web.js +++ b/config/webpack.config.web.js @@ -254,27 +254,6 @@ function plugins(mode /*: "development" | "production" */) { const prodOnlyPlugins = [ // Remove the output directory before starting the build. new RemoveBuildDirectoryPlugin(), - // Minify the code. - new webpack.optimize.UglifyJsPlugin({ - compress: { - warnings: false, - // Disabled because of an issue with Uglify breaking seemingly valid code: - // https://github.com/facebookincubator/create-react-app/issues/2376 - // Pending further investigation: - // https://github.com/mishoo/UglifyJS2/issues/2011 - comparisons: false, - }, - mangle: { - safari10: true, - }, - output: { - comments: false, - // Turned on because emoji and regex is not minified properly using default - // https://github.com/facebookincubator/create-react-app/issues/2488 - ascii_only: true, - }, - sourceMap: shouldUseSourceMap, - }), ]; switch (mode) { case "development":