Thursday, September 18, 2014

JavaScript Compressor


Title: JavaScript Compressor


From Website:

Or,
First make a folder and keep all files:
  1. yuicompressor-2.4.2.jar
  2.  compiler.jar
  3.  input file(yui-min.js)
Then go to folder path using cd command.

cd ..../yourFolder/

Then follow these 2 command.

java -jar compiler.jar --js yui-min.js --js_output_file yui-min.js.closure.js

java -jar yuicompressor-2.4.2.jar yui-min.js -o yui-min.js.ycomp.js --charset utf-8

No comments:

Post a Comment