Ruby/CLI: minify javascript + stylesheets, lossless image optimization
JavaScript Ruby
Latest commit 27f9e3b Dec 29, 2012 @grosser thanks for the help
Failed to load latest commit information.
bin
lib
spec
vendor
.gitignore
Gemfile
Gemfile.lock
Rakefile
Readme.md
reduce.gemspec

Readme.md

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

Install

install ruby + rubygems
sudo gem install reduce

Usage

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

Options

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

Ruby

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

How does it work?

Author

Contributors

Michael Grosser
grosser.michael@gmail.com
License: MIT