Skip to content

Commit 4631bba

Browse files
author
Ives van Hoorne
committed
Make uglify less aggressive
1 parent feaa05b commit 4631bba

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

config/webpack.prod.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,19 @@ module.exports = merge(commonConfig, {
2929
debug: false,
3030
}),
3131
new webpack.optimize.UglifyJsPlugin({
32-
beautify: false,
3332
compress: {
34-
warnings: true,
35-
screw_ie8: true,
36-
conditionals: true,
37-
unused: true,
38-
comparisons: true,
39-
sequences: true,
40-
dead_code: true,
41-
evaluate: true,
42-
if_return: true,
43-
join_vars: true,
33+
warnings: false,
34+
// Disabled because of an issue with Uglify breaking seemingly valid code:
35+
// https://github.com/facebookincubator/create-react-app/issues/2376
36+
// Pending further investigation:
37+
// https://github.com/mishoo/UglifyJS2/issues/2011
38+
comparisons: false,
4439
},
4540
output: {
4641
comments: false,
42+
// Turned on because emoji and regex is not minified properly using default
43+
// https://github.com/facebookincubator/create-react-app/issues/2488
44+
ascii_only: true,
4745
},
4846
sourceMap: true,
4947
}),

0 commit comments

Comments
 (0)