From 9e9062d827f2dbf8115e4e05d723ac0dc96f7c0d Mon Sep 17 00:00:00 2001 From: David Majda Date: Thu, 14 Apr 2011 19:46:04 +0200 Subject: [PATCH] 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). --- Jakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jakefile b/Jakefile index bac9be9..576e714 100644 --- a/Jakefile +++ b/Jakefile @@ -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(); });