aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
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 /build.xml
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 'build.xml')
-rw-r--r--build.xml21
1 files changed, 16 insertions, 5 deletions
diff --git a/build.xml b/build.xml
index 581d13034..8e8fcf9ad 100644
--- a/build.xml
+++ b/build.xml
@@ -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>