Skip to content
This repository has been archived by the owner on Jun 30, 2020. It is now read-only.
/ ngmin-rails Public archive
forked from jasonm/ngmin-rails

Use ngmin in the Rails asset pipeline.

License

Notifications You must be signed in to change notification settings

inkitt/ngmin-rails

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ngmin-rails

Use https://github.com/btford/ngmin in the Rails asset pipeline.

Installation

Add this line to your application's Gemfile:

gem 'ngmin-rails'

And then execute:

$ bundle

That's it! ngmin-rails integrates seamlessly into the Rails asset pipeline; your JavaScript or CoffeeScript assets will automatically be run through the ngmin pre-minifier.

Versioning

The ngmin-rails version number mirrors the version number for the version of ngmin that is bundled with it.

Help

  • Q: I installed ngmin-rails, but my assets aren't getting processed with ngmin.

    A: Remember to delete tmp/cache/assets or touch all the related asset files so that the cached versions get regenerated. If you've precompiled your assets into public/assets, you'll need to re-precompile them.

Hacking

Upgrading ngmin

The actual ngmin project is bundled into this gem via Browserify. You can update to the latest version of ngmin via Rake:

rake ngmin:build

Test Application

There is a Rails 3 application bundled in example/ that you can use to test the asset pipeline integration. Don't forget to remove tmp/cache/assets after upgrading to the latest version of ngmin.

About

Use ngmin in the Rails asset pipeline.

Resources

License

Stars

Watchers

Forks

Packages

No packages published