Just add this gem to your Gemfile:
The gem ships with a Railtie which will automatically register the compressor preprocessors.
If the environment doesn't have pngcrush and/or jpegoptim installed, the gem will fall back on binaries packaged with the gem. Currently, only 32bit and 64bit linux binaries are included. Pull requests welcome for other architectures!
- Provide configuration hooks
- Test Railtie
- @nhogle for help with compiling and packaging the jpegoptim and pngcrush binaries
- @florentmorin for compatibility with sprockets-rails
- @dkubb for compatibility with Rails 4
(MIT License) - Copyright (c) 2012 Micah Geisel