mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
For adding non css/js files to precompile array
This commit is contained in:
parent
32df882f42
commit
694c227314
1 changed files with 2 additions and 0 deletions
|
@ -443,6 +443,8 @@ If you have other manifests or individual stylesheets and JavaScript files to in
|
|||
config.assets.precompile += ['admin.js', 'admin.css', 'swfObject.js']
|
||||
</erb>
|
||||
|
||||
NOTE. Always specify an expected compiled filename that ends with js or css, even if you want to add Sass or CoffeeScript files to the precompile array.
|
||||
|
||||
The rake task also generates a +manifest.yml+ that contains a list with all your assets and their respective fingerprints. This is used by the Rails helper methods to avoid handing the mapping requests back to Sprockets. A typical manifest file looks like:
|
||||
|
||||
<plain>
|
||||
|
|
Loading…
Reference in a new issue