Sass-rails is pretty emphatic about not using Sprockets' `require` directives: "Sprockets provides some directives that are placed inside of comments called require, require_tree, and require_self. DO NOT USE THEM IN YOUR SASS/SCSS FILES."
But I wanted to include a vendored CSS file without having to do any work (like renaming the file to _asset.css.scss), and things like `@import asset-path('lionbars.css', stylesheet)` just didn't work. So I tried using Sprockets' `require`, and presto, problem solved, works in both dev and production. But I'm afraid I may have offended the sass-rails gods (Chris Eppstein)? So in short, is `require` just fine for regular vendored CSS? Or are there dragons in here somewhere that I haven't spotted yet? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.