Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 1.2 KB

README.md

File metadata and controls

48 lines (29 loc) · 1.2 KB

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.