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).
This commit is contained in:
parent
b399004a90
commit
9e9062d827
2
Jakefile
2
Jakefile
|
@ -143,7 +143,7 @@ task("dist", ["build"], function() {
|
||||||
|
|
||||||
var process = childProcess.spawn(
|
var process = childProcess.spawn(
|
||||||
"uglifyjs",
|
"uglifyjs",
|
||||||
["-o", PEGJS_DIST_MIN_FILE, PEGJS_OUT_FILE],
|
["--ascii", "-o", PEGJS_DIST_MIN_FILE, PEGJS_OUT_FILE],
|
||||||
{ customFds: [0, 1, 2] }
|
{ customFds: [0, 1, 2] }
|
||||||
);
|
);
|
||||||
process.on("exit", function() { complete(); });
|
process.on("exit", function() { complete(); });
|
||||||
|
|
Loading…
Reference in a new issue