Sha256: 10d70f26735a3a361cfc3004f70c0f9acf9743edb7ede408fcf597140dd9acb4
Contents?: true
Size: 644 Bytes
Versions: 14
Compression:
Stored size: 644 Bytes
Contents
module Sass module Importers class BowerImporter < Sass::Importers::Filesystem SUPPORTED_EXTNAMES = ["css", "scss", "sass"] protected def extensions super.merge('css' => :scss) end def possible_files(name) if name.start_with? "bower!" name.sub!(/^bower!/, "") path = File.join(@root, name) SUPPORTED_EXTNAMES.each do |extname| lookup = "#{path}.#{extname}" if File.exist? lookup return [[lookup, extensions[extname]]] end end else super end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems