Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 818 Bytes

README.md

File metadata and controls

34 lines (20 loc) · 818 Bytes

RYCompressor

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

Dependencies

The following environments are required:

  • Java (requires Java >= 1.4)
  • Ruby (requires Ruby >= 1.9.x)

HowTo

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

License: none (public domain)