Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/grosser/reduce
- Owner: grosser
- Created: 2009-02-11T20:01:44.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2012-12-30T00:23:27.000Z (almost 12 years ago)
- Last Synced: 2024-10-23T10:00:11.150Z (21 days ago)
- Language: JavaScript
- Homepage:
- Size: 1.75 MB
- Stars: 91
- Watchers: 4
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
Lossless reduction for js, css, html, xml, jpg, png, gif
Install
=======
install ruby + rubygems
sudo gem install reduceUsage
=====
reduce -o public/image.gif
reduce public/javascripts/application.js > public/javascripts/application.min.jsOptions
=======
-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/xmlAuthor
======### [Contributors](https://github.com/grosser/reduce/contributors)
- [Emanuele Bardelli](https://github.com/pacbard)Michael Grosser
[email protected]
License: MIT