Skip to content

Instantly share code, notes, and snippets.

@davejlong
davejlong / build.xml
Created July 8, 2011 15:59
Ant task to use the YUI Compressor
<?xml version="1.0"?>
<project name="YUI Compressor" default="minify" basedir=".">
<property name="yuicompressor.lib" value=".ant/yuicompressor-2.4.6.jar" />
<target name="minify" description="Uses the YUI Compressor engine to combine and minify CSS and JS">
<!-- Remove the existing combined CSS or JS file that exist -->
<delete><fileset dir="css" includes="combined.*" /></delete>
<delete><fileset dir="js" includes="combined.*" /></delete>
<antcall target="minifycss" />