Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom importers not loaded/ working #25

Closed
gucki opened this issue Aug 4, 2011 · 1 comment
Closed

Custom importers not loaded/ working #25

gucki opened this issue Aug 4, 2011 · 1 comment

Comments

@gucki
Copy link

gucki commented Aug 4, 2011

I created a custom sass importer in my rails initializers (so its defined for sure) like

module Sass
  module Importers
    class Sprite < Base
      ...
    end
  end
end

which should basically be used for all @import "sprite:xxx" imports. However it's never called, as I get

Sass::SyntaxError: File to import not found or unreadable: sprite:icons.
Load path: Sass::Rails::Importer(.../application.scss)
@chriseppstein
Copy link
Contributor

You need to add your importer to the sass load path:

config.sass.load_paths << Sass::Importers::Sprite.new

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants