Hi, Download this: http://developer.yahoo.com/yui/compressor/ Install Java on your PC, and add these targets to run it:
<!-- COMPRESS JAVASCRIPT FILES --> <target name="compressJavascripts"> <echo message="WARNING: You need to have JAVA installed on your pc." /> <foreach item="File" property="filename"> <in> <items> <include name="${Publish.Folder}\wwwroot\Scripts\**\*.js" /> </items> </in> <do> <echo message="Compressing: ${filename}" /> <exec program="java.exe" failonerror="true"> <arg value="-jar tools\Compressors\YuiCompressor.jar "${filename}" -o "${Publish.Folder}\wwwroot\CompressTemp.js"" /> </exec> <move file="${Publish.Folder}\wwwroot\CompressTemp.js" tofile="${filename}" overwrite="true" /> </do> </foreach> </target> <!-- COMPRESS CSS FILES --> <target name="compressCSS"> <echo message="WARNING: You need to have JAVA installed on your pc." /> <foreach item="File" property="filename"> <in> <items> <include name="${Publish.Folder}\wwwroot\App_Themes\**\*.css" /> </items> </in> <do> <echo message="Compressing: ${filename}" /> <exec program="java.exe" failonerror="true"> <arg value="-jar tools\Compressors\YuiCompressor.jar "${filename}" -o "${Publish.Folder}\wwwroot\CompressTemp.css"" /> </exec> <move file="${Publish.Folder}\wwwroot\CompressTemp.css" tofile="${filename}" overwrite="true" /> </do> </foreach> </target> Enjoy, Diego Jancic On Tue, Aug 4, 2009 at 08:49, Alon Amsalem, iFOREX<alo...@iforex.com> wrote: > Can you recommend a good JavaScript/CSS compression/obfuscation tool to use > inside Nant? > > > > Thank You, > > > > Alon Amsalem > > > > ________________________________ > If you received this email by mistake without signing up, we would like to > apologize for any inconvenience that has been made. > Should you no longer wish to receive these emails, please click here > remo...@iforex.com > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus > on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users