maccman / sprockets-commonjs

Adds CommonJS support to Sprockets
178 stars 66 forks source link

Add group parameter to rails initializer to run on asset precompilation #5

Closed andrewdeandrade closed 12 years ago

andrewdeandrade commented 12 years ago

Initializers in config/initializers/* aren't executed on asset precompilation.

This means that there is no way to execute register_postprocesser

Rails.application.assets.register_postprocessor 'application/javascript', Sprockets::CommonJS

Adding a :group argument to engine.rb so that this is run on asset recompilation.

andrewdeandrade commented 12 years ago

I believe this should also fix Issue #4, which was the tmp/cache and gemset issue