Minify JavaScript File using YUI Compressor; yui-compressor

To minify JavaScript using the YUI Compressor, do the following: Install YUI Compressor:
sudo apt-get install yui-compressor
Compress the script:
java -jar /usr/share/yui-compressor/yui-compressor.jar --type js -v
myscript.js -o myscript.min.js
Your minified script file we be saved to myscript.min.js
Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment