lib/guard/compass.rb in guard-compass-1.0.0 vs lib/guard/compass.rb in guard-compass-1.1.0

- old
+ new

@@ -42,9 +42,13 @@ config_path = pathname(working_path, config_file) src_path = pathname(root_path, ::Compass.configuration.sass_dir) watchers.push Watcher.new(%r{^#{src_path.relative_path_from(working_path)}/.*}) watchers.push Watcher.new(%r{^#{config_path.relative_path_from(working_path)}$}) + + Array(::Compass.configuration.additional_import_paths).each do |additional_path| + watchers.push Watcher.new(%r{^#{pathname(additional_path).relative_path_from(working_path)}/.*}) + end end def root_path options[:project_path].nil? ? working_path : pathname(working_path, options[:project_path]) end