Skip to content

Commit

Permalink
Disable Uglify reduce_vars (facebook#2200)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored May 17, 2017
1 parent a5ecf56 commit 0cb605e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions 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 0cb605e

Please sign in to comment.