D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
sprockets-2.12.4
/
lib
/
sprockets
/
Filename :
sass_importer.rb
back
Copy
require 'sass' module Sprockets # This custom importer that tracks all imported filenames during # compile. class SassImporter < ::Sass::Importers::Filesystem attr_reader :imported_filenames def initialize(*args) @imported_filenames = [] super end def find_relative(*args) engine = super if engine && (filename = engine.options[:filename]) @imported_filenames << filename end engine end def find(*args) engine = super if engine && (filename = engine.options[:filename]) @imported_filenames << filename end engine end end end