ruby-on-railsasset-pipelinelocomotivecms

Precompile locomotive-cms assets only once


I have a rails application with locomotive cms engine mounted. Compilation of all locomotive assets takes a lot of time (5-10 minutes). Since I do not change locomotive assets, I would like to precompile it only once.

The best solution would be to force rake assets:precompile to compile only application assets and skip compilation of locomotive assets. Already compiled locomotive assets might be added to the git repository.

Is there any easy way to achieve this?


Solution

  • Try Turbo Sprockets. From the README: