Created by: viankakrisna
as quoted by the readme https://github.com/webpack-contrib/uglifyjs-webpack-plugin:
webpack =< v3.0.0 currently contains v0.4.6 of this plugin under webpack.optimize.UglifyJsPlugin as an alias. For usage of the latest version (v1.0.0), please follow the instructions below. Aliasing v1.0.0 as webpack.optimize.UglifyJsPlugin is scheduled for webpack v4.0.0
The v1 is released on October, so I think it's mature enough to switch to v1 in CRA? or do we want to wait for webpack 4?
Pro:
This allows us to use uglify-es and access to parallel and cache options. Hence improving our build speed.
Con:
I haven't test it yet, but maybe this will break our parsing of uglify error https://github.com/facebookincubator/create-react-app/pull/2650