mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
#11759: Update Assets Pipeline Guide
by default included to precompile only non-js/css files from `app/assets` and `application.(css|js)`
This commit is contained in:
parent
fd4e178c7e
commit
99a9303849
1 changed files with 2 additions and 2 deletions
|
@ -682,10 +682,10 @@ the cached page.
|
|||
|
||||
The default matcher for compiling files includes `application.js`,
|
||||
`application.css` and all non-JS/CSS files (this will include all image assets
|
||||
automatically):
|
||||
automatically) from `app/assets` folders including your gems:
|
||||
|
||||
```ruby
|
||||
[ Proc.new { |path| !%w(.js .css).include?(File.extname(path)) },
|
||||
[ Proc.new { |path, fn| fn =~ /app\/assets/ && !%w(.js .css).include?(File.extname(path)) },
|
||||
/application.(css|js)$/ ]
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue