Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/grosser/reduce

Ruby/CLI: minify javascript + stylesheets, lossless image optimization
https://github.com/grosser/reduce

Last synced: 13 days ago
JSON representation

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

Awesome Lists containing this project

README

        

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?
=================
- uses web-based lossless image reduction service [Smush.it](http://smush.it) / [PunyPng](http://www.gracepointafterfive.com/punypng) through [smusher](http://github.com/grosser/smusher)
- uses [YUI compressor](https://developer.yahoo.com/yui/compressor/) to minify css/js
- uses [htmlcompressor](https://code.google.com/p/htmlcompressor/) to minify html/xml

Author
======

### [Contributors](https://github.com/grosser/reduce/contributors)
- [Emanuele Bardelli](https://github.com/pacbard)

Michael Grosser

[email protected]

License: MIT