Minifying JS/CSS

From UbikWiki

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

Contents

Configuration

Download this Eclipse project YUIAnt

Set 2 environment variables:

  • ANT_HOME
  • YUI_COMPRESSOR_HOME (must point to YUICompressor folder

Run target jar to generate the YUIAnt.jar file in dist folder

Put your JS/CSS files to minify in js folder

Run target minify, minified files will be generated in jsmin

Personal tools