Minifying JS/CSS

From UbikWiki

Revision as of 20:54, 19 November 2007 by Pmouawad (Talk | contribs)

Configuration

  1. Download this Eclipse project YUIAnt
  2. Set 2 environment variables:
  • ANT_HOME
  • YUI_COMPRESSOR_HOME (must point to YUICompressor folder
  1. Run target jar to generate the YUIAnt.jar file in dist folder
  2. Put your JS/CSS files to minify in js folder
  3. Run target minify, minified files will be generated in jsmin
Personal tools