File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff 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 } ) ,
You can’t perform that action at this time.
0 commit comments