Search code examples
yuiyui-compressor

Compress Javascript in Windows


Does anyone know any good links on how to minify/compress javascript files using YUI Compressor in Windows? I am trying to figure out how to get it installed, then compress javascript using the msdos command line.

Thanks!


Solution

    1. Install Nodejs for Windows
    2. npm (node package manager) comes with the MSI you just grabbed and installed
    3. Run npm install yuicompressor
    4. Read the docs and compress files

    I would recommend uglify-js over YUI Compressor since it is in a deprecation process. Same install as above.