[Command Line] Fixed a bug in --watch mode that caused changes to partials to not be noticed.
This commit is contained in:
parent
c88c7e2c2d
commit
f111bd73d5
@ -34,15 +34,15 @@ module Compass
|
|||||||
end
|
end
|
||||||
|
|
||||||
def out_of_date?
|
def out_of_date?
|
||||||
|
Compass.configure_sass_plugin! unless Compass.sass_plugin_configured?
|
||||||
sass_files.zip(css_files).each do |sass_filename, css_filename|
|
sass_files.zip(css_files).each do |sass_filename, css_filename|
|
||||||
return sass_filename unless File.exists?(css_filename)
|
return sass_filename if Sass::Plugin.exact_stylesheet_needs_update?(css_filename, sass_filename)
|
||||||
return sass_filename if File.stat(sass_filename).mtime > File.stat(css_filename).mtime
|
|
||||||
end
|
end
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
def run
|
def run
|
||||||
Compass.configure_sass_plugin!
|
Compass.configure_sass_plugin! unless Compass.sass_plugin_configured?
|
||||||
target_directories.each do |dir|
|
target_directories.each do |dir|
|
||||||
directory dir
|
directory dir
|
||||||
end
|
end
|
||||||
|
@ -273,9 +273,14 @@ module Compass
|
|||||||
end
|
end
|
||||||
|
|
||||||
def configure_sass_plugin!
|
def configure_sass_plugin!
|
||||||
|
@sass_plugin_configured = true
|
||||||
Sass::Plugin.options.merge!(sass_plugin_configuration)
|
Sass::Plugin.options.merge!(sass_plugin_configuration)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def sass_plugin_configured?
|
||||||
|
@sass_plugin_configured
|
||||||
|
end
|
||||||
|
|
||||||
def sass_engine_options
|
def sass_engine_options
|
||||||
configuration.to_sass_engine_options
|
configuration.to_sass_engine_options
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user