Skip to content
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.

Commit

Permalink
Disable comparisons feature in uglify compression in production (#2379)
Browse files Browse the repository at this point in the history
* Disable a micro-option in uglify that appears to be buggy

See facebook/create-react-app#2376

* wrong plugin

* Add a comment
  • Loading branch information
davidascher authored and wmonk committed Aug 7, 2017
1 parent bfeb950 commit 9114aea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@ module.exports = {
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,
},
output: {
comments: false,
Expand Down

0 comments on commit 9114aea

Please sign in to comment.