Take the 2-minute tour ×

Is it possible to exclude select files from being compressed when sprockets executes as part of the asset pipeline?

// application.css file
//= stub admin/vendor/jquery191
//= stub admin/vendor/jqueryui1102
//= stub admin/vendor/bootstrap/bootstrap

For example, if I didn't want to slow down my deployment process by compressing bootstrap. Is there a way to do this?

share|improve this question
I dont think you should be doing that. First, assets compilation is not that long, second you can precompile before deploy so your deploy can be fast and third you can always fallback to not compiled version (until you actually compile it) –  Iuri G. Jun 21 '13 at 20:58
The gem 'turbo-sprockets-rails3' recompile only the modified assets. It divided my deployment time by 3 –  Syl Jun 21 '13 at 22:37

Your Answer



Browse other questions tagged or ask your own question.