added support for --debug-info and --no-debug-info to compass compile
This commit is contained in:
parent
f8378d039d
commit
a8e48c5a2a
@ -17,6 +17,14 @@ module Compass
|
|||||||
opts.on("--time", "Display compilation times.") do
|
opts.on("--time", "Display compilation times.") do
|
||||||
self.options[:time] = true
|
self.options[:time] = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
opts.on("--debug-info", "Turns on sass's debuging information") do
|
||||||
|
self.options[:debug_info]= true
|
||||||
|
end
|
||||||
|
|
||||||
|
opts.on("--no-debug-info", "Turns on sass's debuging information") do
|
||||||
|
self.options[:debug_info]= false
|
||||||
|
end
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -56,6 +64,10 @@ module Compass
|
|||||||
compiler_opts.merge!(options)
|
compiler_opts.merge!(options)
|
||||||
compiler_opts[:sass_files] = explicit_sass_files
|
compiler_opts[:sass_files] = explicit_sass_files
|
||||||
compiler_opts[:cache_location] = determine_cache_location
|
compiler_opts[:cache_location] = determine_cache_location
|
||||||
|
if options.include?(:debug_info) && options[:debug_info]
|
||||||
|
compiler_opts[:sass][:debug_info] = options.delete(:debug_info)
|
||||||
|
end
|
||||||
|
puts compiler_opts.inspect
|
||||||
compiler_opts
|
compiler_opts
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user