diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-14 11:59:02 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-14 14:43:10 -0600 |
commit | c19e6da70202bdc1f9dd932a27ca9d34dd931c1e (patch) | |
tree | 6f822ab3f9f7c78bf99ae0c3ccf60a0b68ac615c /common.mk | |
parent | bfc73c05c1be186d50146027f523f7f577d7affe (diff) |
common.mk: use closure-compiler, but preserve headers
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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,$<,$@) |