Support for passing an import path to the sass command-line.
This commit is contained in:
parent
c25d6aef7c
commit
7b1288438f
|
@ -168,6 +168,7 @@ END
|
|||
def initialize(args)
|
||||
super
|
||||
@name = "Sass"
|
||||
@options[:for_engine][:load_paths] = ['.'] + (ENV['SASSPATH'] || '').split(File::PATH_SEPARATOR)
|
||||
end
|
||||
|
||||
def set_opts(opts)
|
||||
|
@ -185,6 +186,9 @@ END
|
|||
'Run an interactive SassScript shell.') do
|
||||
@options[:interactive] = true
|
||||
end
|
||||
opts.on('-I', '--load-path PATH', 'Add a sass import path.') do |path|
|
||||
@options[:for_engine][:load_paths] << path
|
||||
end
|
||||
end
|
||||
|
||||
def process_result
|
||||
|
|
Loading…
Reference in New Issue