mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-05-17 19:52:15 +08:00
Disable comparisons feature in uglify compression in production (#2379)
* Disable a micro-option in uglify that appears to be buggy See https://github.com/facebookincubator/create-react-app/issues/2376 * wrong plugin * Add a comment
This commit is contained in:
committed by
Dan Abramov
parent
c1ba38dbf5
commit
f6d8544033
@@ -282,6 +282,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,
|
||||
|
||||
Reference in New Issue
Block a user