Reputation: 43402
To precompile all css files in a project I could add this to production.rb:
config.assets.precompile << '*.css'
But how can I add only css files in a particular folder?
Upvotes: 0
Views: 169
Reputation: 6711
Add all stylesheets into your app/assets/stylesheets/application.css
:
/*
*= require_self
*= require_tree dir_one
*= require_tree dir_two
*/
Then they will be precompiled. I think this is the preferred way over using config.assets.precompile
.
If you really want to use it, this SO question should help: How do I use config.assets.precompile for directories rather than single files?
Upvotes: 1