ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Smith" <dhtmlkitc...@gmail.com>
Subject Re: Who's Using YUI Compressor with ANT?
Date Sat, 23 Feb 2008 21:26:22 GMT
On Sat, Feb 23, 2008 at 9:44 AM, Yannick Haudry <yhaudry@gmail.com> wrote:
> On Fri, Feb 22, 2008 at 10:06 PM, Garrett Smith <dhtmlkitchen@gmail.com> wrote:
>  > On 2/22/08, Yannick Haudry <yhaudry@gmail.com> wrote:
>  >  > Hi,
>  >  >
>  >  >  Adding the 'dest' attribute to the Apply task and moving up the '-v'
>  >  >  argument (as shown below) should make it work !
>  >
>  >  Thanks that worked great! Files are minified now.
>  >
>  >  docs:
>  >  http://ant.apache.org/manual/CoreTasks/apply.html
>  >
>  >  So I ran the whole thing on **/* and min'd them all. I also made a
>  >  <copy> command in a new target.
>  >
>  >  It's great. But I still want to figure a few more things out.
>  >
>  >  I want to build to files and combine them into one:
>  >   a.js
>  >   b.js
>  >
>  >  result:
>  >   a-b.js
>  >
>  >  How to do this?
>  >
>
>  Take a look at the Concat Task:
>  http://ant.apache.org/manual/CoreTasks/concat.html

Wow that was way easier than I thought it would be.

High level overview:
<target name="js.rollups">...</target>
<target name="js.copy" depends="js.rollups">...</target>
<target name="js.minify" depends="js.copy">...</target>
<target name="clean">...</target>

I just build all my js in 3 sec.

I'm surprised at how easy this was.

Thanks, Yannik.

Garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message