Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby/CLI: minify javascript + stylesheets, lossless image optimization

branch: master
Octocat-spinner-32 bin Added html and xml to bin banner
Octocat-spinner-32 lib v0.3.0
Octocat-spinner-32 spec Added sample html file
Octocat-spinner-32 vendor Added support for html compression through htmlcompressor
Octocat-spinner-32 .gitignore added docs + bin
Octocat-spinner-32 Gemfile cleanup
Octocat-spinner-32 Gemfile.lock v0.3.0
Octocat-spinner-32 Rakefile cleanup
Octocat-spinner-32 Readme.md thanks for the help
Octocat-spinner-32 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.