Use --ascii option when generating a minified version

This makes the minified version actually work and not cause syntax
errors when loaded into a browser (this happened with Chrome and Firefox
at least).
redux
David Majda 13 years ago
parent b399004a90
commit 9e9062d827

@ -143,7 +143,7 @@ task("dist", ["build"], function() {
var process = childProcess.spawn(
"uglifyjs",
["-o", PEGJS_DIST_MIN_FILE, PEGJS_OUT_FILE],
["--ascii", "-o", PEGJS_DIST_MIN_FILE, PEGJS_OUT_FILE],
{ customFds: [0, 1, 2] }
);
process.on("exit", function() { complete(); });

Loading…
Cancel
Save