From c19e6da70202bdc1f9dd932a27ca9d34dd931c1e Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 14 Jul 2013 11:59:02 -0600 Subject: common.mk: use closure-compiler, but preserve headers --- common.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common.mk') diff --git a/common.mk b/common.mk index 0065e1af..a0db5d70 100644 --- a/common.mk +++ b/common.mk @@ -1,9 +1,10 @@ topdir := $(dir $(lastword $(MAKEFILE_LIST))) www = $(topdir)/../web-cache/www -JSMIN = cp $1 $2 +#JSMIN = cp $1 $2 #JSMIN = compiler $1 #JSMIN = uglify-js -nc $1 > $2 +JSMIN = { sed -n '1,/\*\//p' $1; closure-compiler --js $1; } > $2 %.min.js: %.js $(call JSMIN,$<,$@) -- cgit v1.2.3-2-g168b