Skip to content

Instantly share code, notes, and snippets.

@nasminspy
Created June 8, 2016 11:00
Show Gist options
  • Save nasminspy/1c8f767b06d68e212ce7626aa9076a86 to your computer and use it in GitHub Desktop.
Save nasminspy/1c8f767b06d68e212ce7626aa9076a86 to your computer and use it in GitHub Desktop.
<target name="js.minify" depends="js.preprocess">
<apply executable="java" parallel="false">
<fileset dir="." includes="foo.js, bar.js"/>
<arg line="-jar"/>
<arg path="yuicompressor.jar"/>
<srcfile/> <arg line="-o"/>
<mapper type="glob" from="*.js" to="*-min.js"/>
<targetfile/>
</apply>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment