Question, how do you get all .css and .js to be compiled by the asset pipeline?
I tried
config.assets.precompile += %w(*.css, *.js)
and that got all of the .js to precompile. But for some reason the .css file is not compiling.
Suggestions?
For anyone trying to do this yourself, the answer had to do with the format of the selectors. precompile take an array of selectors, and the selectors are supposed to be strings, so you could do
config.assets.precompile += ['*.css', '*.js']
to get all css and js files to precompile. You can extend this logic to be more taylored, for example, I was able to group all of the css into 3 manifest files, but still found it more extensible to be able to include any .js, though there were several manifest .js files to make fewer calls on the most popular pages.
config.assets.precompile += ['logged.css','forum.css','editor.css', '*.js']