Skip to content

Commit

Permalink
ascii-only output by default, ref choojs/bankai#0c77d24
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed Oct 17, 2017
1 parent 01106ae commit 89aaf79
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ module.exports = function (b, opts) {
global: true,
toplevel: true,
// No need to mangle here, will do that at the end.
mangle: false
mangle: false,
output: {
ascii_only: true
}
})

// Output a flat bundle, without function wrappers for each module.
Expand All @@ -34,7 +37,11 @@ module.exports = function (b, opts) {
b.plugin(commonShake)

// Minify the final output.
var uglifyOpts = {}
var uglifyOpts = {
output: {
ascii_only: true
}
}
if (!b._options.debug) {
uglifyOpts.sourceMap = false
}
Expand Down

0 comments on commit 89aaf79

Please sign in to comment.