summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-24 23:17:02 -0500
committerLuke Shumaker <lukeshu@parabola.nu>2019-03-10 01:08:41 -0500
commit7b3c30691f8ff901b8ddb32b17d6894015b68ef7 (patch)
tree6c84341253a7ecc0af31283f0d5674481c5e4c7e
parent398e07ea41816e313d1416b5dde9ed2b4669b17d (diff)
Use uglifyjs instead of closure-compiler. It's faster.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3b4bef11..d0c933ae 100644
--- a/Makefile
+++ b/Makefile
@@ -130,7 +130,7 @@ visualize/static/d3-$(d3-ver).js: %: $(www)/https/raw.github.com/mbostock/d3/v$(
cp $< $@
# JavaScript minification
-JSMIN = { sed -n '1,/\*\//p' $1; closure-compiler --js $1; } > $2
+JSMIN = { sed -n '1,/\*\//p' $1; uglifyjs --mangle --compress < $1; } > $2
%.min.js: %.js
$(call JSMIN,$<,$@)