jasonm / ngmin-rails

DEPRECATED [Was: Use ngmin in the Rails asset pipeline.]
MIT License
42 stars 13 forks source link

Rails 4 compatibility #2

Closed ponny closed 11 years ago

ponny commented 11 years ago

Has this gem been proven to work on Rails 4? I've followed the two instructions but it doesn't seem to do anything. Assets get packaged with same angular provider borks.

From gemfile:

  gem 'ngmin-rails'
  gem 'sass-rails',   '~> 4.0.0.beta1'
  gem 'coffee-rails', '~> 4.0.0.beta1'

  gem 'uglifier', '>= 1.0.3'
ponny commented 11 years ago

Extra hints: it goes through the initializer in railtie.rb but never hits the prepare or evaluate in processor.rb. Ideas?

ponny commented 11 years ago

Found issue - had to blow away cached versions of my assets in both tmp/cache/assets/development/sprockets/ and public/assets/ so they would get reprocessed with the new processors.

BinaryMuse commented 11 years ago

Ah yes--you either have to clear your cache or touch (or update) the source files themselves for the tmp/cache/assets to be rebuilt, and of course precompiled assets in public need to be regenerated. I'll add a note to the readme for others; thanks for tracking this down.