gems.compass-import-once-1.0.5.lib.compass.import-once.activate.rb Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sass-maven-plugin Show documentation
Show all versions of sass-maven-plugin Show documentation
A Maven Plugin that compiles Sass files.
require 'compass/import-once'
module Sass
class Engine
def self.new(*args)
instance = super
instance.extend(Compass::ImportOnce::Engine)
if i = instance.options[:importer]
i.extend(Compass::ImportOnce::Importer) unless i.is_a?(Compass::ImportOnce::Importer)
end
instance.options[:load_paths].each do |path|
if path.is_a?(Sass::Importers::Base) && !path.is_a?(Compass::ImportOnce::Importer)
path.extend(Compass::ImportOnce::Importer)
elsif !path.is_a?(Sass::Importers::Base)
Sass::Util.sass_warn "WARNING: #{path.inspect} is on the load path and is not an importer."
end
end
instance
end
end
end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy