A simple but easy way to compress JavaScript and CSS files, it is written in ruby based on YUI Compressor.
https://github.com/swaydeng/RYCompressor
The following environments are required:
To compress one or more files:
$ ./rycompressor.rb some-file.js some-other-file.css
It will generate two files(some-file-min.js
, some-other-file-min.css
) in the same directory.
To compress all JavaScript and CSS files in a directory:
$ ./rycompressor.rb some/dir some/other/dir
It will find files in the directory and then compress them.
License: none (public domain)