No release in over a year
Minify with yui-compressor, tester in propshaft.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 7.0.0
>= 0
>= 7.0.0
 Project Readme

Assets::Minify::Rails

release license

Installation

Add this line to your application's Gemfile:

gem 'assets-minify-rails'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install asset-minify-rails

Usage

When you do asset:precompile, minify runs automatically. Note that this will overwrite the existing path. The following tasks can also be done independently.

$ rails assets_minify:compress

Development

This gem minifies js, css files under Rails.application.config.output_path.

Support engines

engine extension Rails::Application.config.js_compressor Rails::Application.config.css_compressor
terser .js terser -
yui .css, .js yui, yui_compressor yui, yui_compressor
postcss .css - postcss

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/newsdict/assets-minify-rails.

License

The gem is available as open source under the terms of the MIT License.