Merge pull request #2063 from 2youyou2/master

escape Unicode characters in strings and regexps
This commit is contained in:
Jare Guo
2017-10-24 04:10:46 -05:00
committed by GitHub
+4
View File
@@ -43,6 +43,9 @@ exports.getUglifyOptions = function (platform, isJSB, isDebugBuild) {
return {
compress: {
global_defs: global_defs,
},
output: {
ascii_only: true,
}
};
}
@@ -54,6 +57,7 @@ exports.getUglifyOptions = function (platform, isJSB, isDebugBuild) {
// http://lisperator.net/uglifyjs/codegen
beautify: true,
indent_level: 2,
ascii_only: true,
},
compress: {
// https://github.com/mishoo/UglifyJS2#compressor-options