This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
Update uglifyjs-webpack-plugin to support prod builds with es6 target or higher #248
Closed
Description
The react-scripts
package uses the UglifyJsPlugin version distributed by webpack (webpack.optimize.UglifyJsPlugin
) which is quite old and doesn't support the minification of ES6 code (see here).
Since version 1.0.0 the plugin (now under a separate repo) uses a new uglify version that supports ES6 minification. Similar projects like angular-cli are already using it (angular/angular-cli#7610) or are planning to use it (create-react-app in 2.0.0) .
Simply replacing the old plugin with the new one would actually resolve #158 and #21 and bring ES6 prod builds! 🚀
Metadata
Metadata
Assignees
Labels
No labels