YUI Compressor does a pretty good job at minifying the JS.
I like the idea of building multiple files and doing batch operations.
I want to combine
a.js
b.js
c.js
to
abc-min.js
>From windows cmd:
C:\Users\ape\ant>.\bin\ant -buildfile=..\build.xml js.minify
Buildfile: ..\build.xml
js.minify:
BUILD SUCCESSFUL
Total time: 0 seconds
==============================
Cool! But where's my files?
build.xml:
<project>
<target name="js.minify">
<apply executable="java" parallel="false">
<fileset dir="aped\src" includes="APE.js, EventPublisher.js"/>
<arg line="-jar"/>
<arg path="yuicompressor-2.3.5\build\yuicompressor-2.3.5.jar"/>
<srcfile/>
<arg line="-o"/>
<arg line="-v"/>
<mapper type="glob" from="*.js" to="*-min.js"/>
<targetfile/>
</apply>
</target>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]