开发者

Sprockets require_directory problem

开发者 https://www.devze.com 2023-04-02 08:45 出处:网络
I\'m using Yahoo\'s reset.css in my new generated Rails 3.1 app. Given following app structure: - myapp

I'm using Yahoo's reset.css in my new generated Rails 3.1 app. Given following app structure:

 - myapp
   - app
     - assets
       - stylesheets
         - application.css
   - ...
   - vendor
     - assets
       - stylesheets
         - yahoo
           - reset.css
           - fonts.css

Including the reset.css files inside my application.css using the require_directory directive following ends in require_tree argument must be a director开发者_JAVA百科y.

 /*
  *= require_directory ./yahoo
  */

Do I got something wrong or is this a Sprockets related bug? Because moving the reset.css files into app/assets works like a charm.

(Btw got the problem too in my Rails 3.0 app using a custom Sprockets env.)


Ok, @josh answered my question:

Seems I need some kind of a proxy file (yahoo.css) which will be included in my application.css:

/*
 *= require_directory ./yahoo
 */
0

精彩评论

暂无评论...
验证码 换一张
取 消