简体   繁体   中英

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?

Try Turbo Sprockets . From the README:

  • Speeds up your Rails 3 rake assets:precompile by only recompiling changed assets, based on a hash of their source files
  • Only compiles once to generate both fingerprinted and non-fingerprinted assets

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM