链接需要HTTP资产
我想知道是否可以通过HTTP要求一些资产,例如:
/* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. * * You're free to add application-wide styles to this file and they'll appear at the top of the * compiled file, but it's generally better to create a new file per style scope. * *= require_tree . *= require 'http://assets.domain.com/stylesheets/style.css' */
我用这个片段得到一个Sprockets :: FileNotFound错误。
谢谢
Sprockets自述文件指出require
一个路径,并没有提到从HTTP拉出东西。
.NET的JurassicCoffee项目似乎增加了通过HTTP加载文件的能力。
同样的问题,但与JS …