I wish to precompile all the CSS and JS files in my project's app/assets
folder. I do NOT want to precompile everything in vendor/assets or lib/assets, only the dependencies of my files as needed.
I tried the following wildcard setting, but it incorrectly precompiles everything. This results in lots of extra work and even causes a compilation failure when using bootstrap-sass.
config.assets.precompile += ['*.js', '*.css']
What is my best bet to only process my files in app/assets
? Thanks!
config.assets.precompile = ['*.js', '*.css']
That will compile any JavaScript or CSS in your asset path, regardless of directory depth. Found via this answer.