Is it possible to force generation of assets with Rails Asset Pipeline? Is it possible to force generation of assets with Rails Asset Pipeline? ruby-on-rails ruby-on-rails

Is it possible to force generation of assets with Rails Asset Pipeline?


To force a complete regeneration of all assets use:

rake assets:clobber assets:precompile

Very handy when asset_sync isn't playing fair with you...

I know this may not help you, but hopefully it will make it easier for someone else to find the answer.


You can reset the assets cache with

rake tmp:cache:clear


I worked it out.

The master.less file (as in the main less file that coordinates the other include files) needed to have the pipeline directives added to it.

So in my case, application.css contains:

/* *= require html5reset-1.6.1 *= require master*/

And master.css.less contains:

/* *= depend_on mixins*/@import "mixins";