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

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -