10

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 directory.

 /*
  *= 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.)

Mario Uher
  • 12,249
  • 4
  • 42
  • 68

1 Answers1

14

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
 */
Mario Uher
  • 12,249
  • 4
  • 42
  • 68
  • Can you post the contents of your proxy file and how you included in application.css. I am having the same problem and I do not really understand the solution. Thanks in advance :) – Christoph Apr 12 '15 at 20:15
  • The code above is the content of the proxy file! ;) – Mario Uher Apr 12 '15 at 21:16