Minify JavaScript File using YUI Compressor; 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
Comments
Leave a Reply