I was testing combining css and js files and that seem to be easy using this command line:
for css files:
sudo cat *.css > combined.css
for js files:
sudo cat *.js > combined.js
The weird part is that the compression result don't seem to be as I thought. I compared the results through this command:
wc combined.css combined.min.css
And got this result:
727325 combined.css
716052 combined.min.css
now I'm wondering is that all I can do? does that reflect a real result? I mean I see some tests around the net and it shows around 60% difference.
any idea what's going on??
Update:
This is the command used to compress the files:
java -jar /usr/share/yui-compressor/yui-compressor.jar combined.css -o combined.min.css