Skip to content

Commit

Permalink
Add --ascii to uglifyjs. Related #1195.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Aug 12, 2013
1 parent 23ee2c0 commit 41bfffe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -32,7 +32,7 @@ d3.js: $(shell node_modules/.bin/smash --list src/d3.js) package.json
node_modules/.bin/smash src/d3.js | node_modules/.bin/uglifyjs - -b indent-level=2 -o $@
@chmod a-w $@

d3.min.js: d3.js
d3.min.js: d3.js bin/uglify
@rm -f $@
bin/uglify $< > $@

Expand Down
2 changes: 1 addition & 1 deletion bin/uglify
Expand Up @@ -5,7 +5,7 @@ var fs = require("fs"),

var filename = process.argv[2],
toplevel = uglify.parse(fs.readFileSync(filename, "utf8"), {filename: filename}),
output = uglify.OutputStream(),
output = uglify.OutputStream({ascii_only: true}),
compressor = uglify.Compressor(true),
warn = uglify.AST_Node.warn;

Expand Down

0 comments on commit 41bfffe

Please sign in to comment.