Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ruby/CLI: minify javascript + stylesheets, lossless image optimization
JavaScript Ruby
branch: master
Failed to load latest commit information.
bin Added html and xml to bin banner
lib v0.3.0
spec Added sample html file
vendor Added support for html compression through htmlcompressor
.gitignore added docs + bin
Gemfile cleanup
Gemfile.lock v0.3.0
Rakefile
Readme.md thanks for the help
reduce.gemspec manage via bundler

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

Something went wrong with that request. Please try again.