Ruby/CLI: minify javascript + stylesheets, lossless image optimization
JavaScript Ruby
Switch branches/tags
Clone or download
Latest commit 27f9e3b Dec 30, 2012
Failed to load latest commit information.
bin Added html and xml to bin banner Dec 29, 2012
lib v0.3.0 Dec 30, 2012
spec Added sample html file Dec 29, 2012
vendor Added support for html compression through htmlcompressor Dec 29, 2012
.gitignore added docs + bin Feb 11, 2009
Gemfile cleanup Dec 30, 2012
Gemfile.lock v0.3.0 Dec 30, 2012
Rakefile cleanup Dec 30, 2012 thanks for the help Dec 30, 2012
reduce.gemspec manage via bundler Dec 30, 2012

Lossless reduction for js, css, html, xml, jpg, png, gif


install ruby + rubygems
sudo gem install reduce


reduce -o public/image.gif
reduce public/javascripts/application.js > public/javascripts/application.min.js


-o, --overwrite                  overwrite file
-v, --version                    Show Version
-h, --help                       Show this.


reduced_data = Reduce.reduce('files/bla.js')

How does it work?



Michael Grosser
License: MIT