Skip to content

Commit e0ec299

Browse files
Ari1cPeterRao
authored andcommitted
FIX: 修复乱码问题 (#661)
1 parent e75c60f commit e0ec299

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

browser-build.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ function build(options, callback) {
5050
var code = (data || '').toString();
5151
if (options.minify) {
5252
var uglify = require('uglify-js');
53-
var minified = uglify.minify(code, {fromString: true});
53+
var minified = uglify.minify(code, {
54+
fromString: true,
55+
output: {
56+
'ascii_only': true
57+
}
58+
});
5459
code = minified.code;
5560
}
5661
code = license + code;

0 commit comments

Comments
 (0)