class Sprockets::SassImporter
systems work together.
‘@import` statements. This makes the Sprockets and Sass caching
This custom importer adds sprockets dependency tracking on to Sass
def find(*args)
def find(*args) engine = super if engine && (filename = engine.options[:filename]) @context.depend_on(filename) end engine end
def find_relative(*args)
def find_relative(*args) engine = super if engine && (filename = engine.options[:filename]) @context.depend_on(filename) end engine end
def initialize(context, root)
def initialize(context, root) @context = context super root.to_s end