diff options
author | jeresig <jeresig@gmail.com> | 2009-12-18 21:23:26 -0500 |
---|---|---|
committer | jeresig <jeresig@gmail.com> | 2009-12-18 21:23:26 -0500 |
commit | 3fd62eae9df3159fc238a515bb748140a942313d (patch) | |
tree | f3701994828ca356c2eb4059e1352ca89b72f0df /build.xml | |
parent | 42f8c3add3e0e4370d4bd6816bf471e07baf34be (diff) | |
download | jquery-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 'build.xml')
-rw-r--r-- | build.xml | 21 |
1 files changed, 16 insertions, 5 deletions
@@ -71,13 +71,24 @@ <include name="jquery.js" /> </fileset> <arg line="-jar" /> - <arg path="build/yuicompressor-2.4.2.jar" /> - <arg value="--charset" /> - <arg value="ANSI" /> - <arg value="-o" /> + <arg path="build/google-compiler-20091218.jar" /> + <arg value="--warning_level" /> + <arg value="QUIET" /> + <arg value="--js_output_file" /> <targetfile /> - <mapper type="glob" from="jquery.js" to="jquery.min.js" /> + <arg value="--js" /> + <mapper type="glob" from="jquery.js" to="tmpmin" /> </apply> + <concat destfile="${JQ_MIN}"> + <filelist files="${JQ}, dist/tmpmin"/> + <filterchain> + <headfilter lines="15"/> + </filterchain> + </concat> + <concat destfile="${JQ_MIN}" append="yes"> + <filelist files="dist/tmpmin"/> + </concat> + <delete file="dist/tmpmin"/> <echo message="${JQ_MIN} built." /> </target> |