简体   繁体   中英

Asset Pipeline Compile Only Javascript files

bundle exec rake assets:precompile

which compiles assets and moves them into public/assets/ Now suppose i already compiled assets and deploy on production, Now i comeback to my local machine and changes two lines in some javascript file Now I have to run the task again while deploying on production.

I want that it should not compile css because i have not done any changes in css. Is there any command which compiles only javascript

Like this

bundle exec rake assets:precompile --javascript

Try this gem. http://rubygems.org/gems/turbo-sprockets-rails3 It checks which file is changed and speed up precompile.

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