Skip to content

Commit

Permalink
Disable Uglify reduce_vars (#2200)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored May 17, 2017
1 parent c27d765 commit fd2a800
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react-scripts/config/webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ module.exports = {
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false,
// This feature has been reported as buggy a few times, such as:
// https://github.com/mishoo/UglifyJS2/issues/1964
// We'll wait with enabling it by default until it is more solid.
reduce_vars: false,
},
output: {
comments: false,
Expand Down

0 comments on commit fd2a800

Please sign in to comment.