提交 595b05a8 编写于 作者: R Rafael Mendonça França

Merge pull request #11778 from jetthoughts/11759_update_assets_guides

Update Assets Pipeline Guide [ci skip]
...@@ -682,10 +682,10 @@ the cached page. ...@@ -682,10 +682,10 @@ the cached page.
The default matcher for compiling files includes `application.js`, The default matcher for compiling files includes `application.js`,
`application.css` and all non-JS/CSS files (this will include all image assets `application.css` and all non-JS/CSS files (this will include all image assets
automatically): automatically) from `app/assets` folders including your gems:
```ruby ```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)$/ ] /application.(css|js)$/ ]
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册