mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Only compile non-js/css under app/assets by default
This commit is contained in:
parent
4f4417314c
commit
117d5e3bbb
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ module Rails
|
||||||
@assets = ActiveSupport::OrderedOptions.new
|
@assets = ActiveSupport::OrderedOptions.new
|
||||||
@assets.enabled = false
|
@assets.enabled = false
|
||||||
@assets.paths = []
|
@assets.paths = []
|
||||||
@assets.precompile = [ Proc.new { |path| !%w(.js .css).include?(File.extname(path)) },
|
@assets.precompile = [ Proc.new { |path, fn| fn =~ /app\/assets/ && !%w(.js .css).include?(File.extname(path)) },
|
||||||
/(?:\/|\\|\A)application\.(css|js)$/ ]
|
/(?:\/|\\|\A)application\.(css|js)$/ ]
|
||||||
@assets.prefix = "/assets"
|
@assets.prefix = "/assets"
|
||||||
@assets.version = ''
|
@assets.version = ''
|
||||||
|
|
Loading…
Reference in a new issue