aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2009-12-18 21:23:26 -0500
committerjeresig <jeresig@gmail.com>2009-12-18 21:23:26 -0500
commit3fd62eae9df3159fc238a515bb748140a942313d (patch)
treef3701994828ca356c2eb4059e1352ca89b72f0df /Makefile
parent42f8c3add3e0e4370d4bd6816bf471e07baf34be (diff)
downloadjquery-3fd62eae9df3159fc238a515bb748140a942313d.tar.gz
jquery-3fd62eae9df3159fc238a515bb748140a942313d.zip
Switched from using YUI Compressor to Google Compiler. Minified and Gzipped filesize reduced to 22,839 bytes from 26,169 bytes (13% decrease in filesize). Sizzle copyright was merged into the main header (since it's removed automatically). Still passes all unit tests.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2bf19fe9c..a0dbd8b78 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ JQ_MIN = ${DIST_DIR}/jquery.min.js
JQ_VER = `cat version.txt`
VER = sed s/@VERSION/${JQ_VER}/
-MINJAR = java -jar ${BUILD_DIR}/yuicompressor-2.4.2.jar
+MINJAR = java -jar ${BUILD_DIR}/google-compiler-20091218.jar
DATE=`git log -1 | grep Date: | sed 's/[^:]*: *//'`
@@ -66,7 +66,8 @@ min: ${JQ_MIN}
${JQ_MIN}: ${JQ}
@@echo "Building" ${JQ_MIN}
- @@${MINJAR} ${JQ} > ${JQ_MIN}
+ @@head -15 ${JQ} > ${JQ_MIN}
+ @@${MINJAR} --js ${JQ} --warning_level QUIET >> ${JQ_MIN}
clean:
@@echo "Removing Distribution directory:" ${DIST_DIR}