Skip to content

Commit

Permalink
FIX: 修复乱码问题 (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ari1c authored and PeterRao committed Oct 14, 2019
1 parent e75c60f commit e0ec299
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion browser-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ function build(options, callback) {
var code = (data || '').toString();
if (options.minify) {
var uglify = require('uglify-js');
var minified = uglify.minify(code, {fromString: true});
var minified = uglify.minify(code, {
fromString: true,
output: {
'ascii_only': true
}
});
code = minified.code;
}
code = license + code;
Expand Down

0 comments on commit e0ec299

Please sign in to comment.