Minifying JS/CSS
From UbikWiki
(Difference between revisions)
(→Configuration) |
|||
Line 1: |
Line 1: | ||
== Configuration == | == Configuration == | ||
- | + | === Download this Eclipse project [http://www.ubik-ingenierie.com/miscellanous/YUIAnt/Yuiant.zip YUIAnt] === | |
- | + | === Set 2 environment variables: === | |
* ANT_HOME | * ANT_HOME | ||
* YUI_COMPRESSOR_HOME (must point to [http://www.julienlecomte.net/yuicompressor/ YUICompressor] folder | * YUI_COMPRESSOR_HOME (must point to [http://www.julienlecomte.net/yuicompressor/ 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 === |
Revision as of 20:54, 19 November 2007
Contents |
Configuration
Download this Eclipse project YUIAnt
Set 2 environment variables:
- ANT_HOME
- YUI_COMPRESSOR_HOME (must point to YUICompressor folder