From 5ea09b2c466df1c170dd5181189bd3f5a6674ec5 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Sun, 21 Jul 2013 07:39:56 -0400 Subject: [PATCH] switch to uglifyjs for minification; another ~5k savings --- chopping-block.txt | 1 + generate-combined.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/chopping-block.txt b/chopping-block.txt index fdb78f5..b43d2b4 100644 --- a/chopping-block.txt +++ b/chopping-block.txt @@ -31,6 +31,7 @@ $ make test-combined 122403 replace rgbcolor.js with a DOM trick. 122185 consolidate findPos{X,Y} 120905 move custom circles into extras/circles.js + 115027 switch to uglifyjs TODO: diff --git a/generate-combined.sh b/generate-combined.sh index d5aefeb..76d232c 100755 --- a/generate-combined.sh +++ b/generate-combined.sh @@ -36,7 +36,8 @@ Copyright () { CatMinified () { Copyright CatSources \ - | java -jar yuicompressor-2.4.2.jar --type js + | uglifyjs - -c -m + # | java -jar yuicompressor-2.4.2.jar --type js } ACTION="${1:-update}" -- 2.7.4