Rails 3.1 asset precompilation - include all javascript files -


Specifically, the default matcher .js does not connect the files to the vendor / property / javascript to compile the files. I can simply add the property to the config.assets.precompile list, but it seems annoying I do not want to refer them to the application.js manifest because I want to Do not include them in all pages.

In short, any way to request this is found in .js in the seller / assets / javascript files , but without all the pages included?

config.assets.precompile accepts regular expressions and wildcard matches - In order to ensure that all JS files are compiled without specifying each by the name, something like this should be done:

  config.assets.precompile & Lt; & Lt; '* .js'    

Comments

Popular posts from this blog

php - Creating canonical URLs with custom route-classes -

Mysql Local server hardware -

mysql - Formatting problem with PHP DateTime Difference when used as part of an equation -