mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
Merge pull request #2063 from 2youyou2/master
escape Unicode characters in strings and regexps
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user