[Command Line] The --force option will now force recompilation. Useful when the stylesheets don't appear to need a recompile.
This commit is contained in:
parent
ddfba8ec83
commit
c40566c93b
2
Rakefile
2
Rakefile
@ -78,7 +78,7 @@ task :examples do
|
||||
output.close
|
||||
end
|
||||
Dir.chdir example do
|
||||
Compass::Exec::Compass.new([]).run!
|
||||
Compass::Exec::Compass.new(["--force"]).run!
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -57,7 +57,7 @@ module Compass
|
||||
|
||||
# Compile one Sass file
|
||||
def compile(sass_filename, css_filename, options)
|
||||
if Sass::Plugin.exact_stylesheet_needs_update?(css_filename, sass_filename)
|
||||
if options[:force] || Sass::Plugin.exact_stylesheet_needs_update?(css_filename, sass_filename)
|
||||
logger.record :compile, basename(sass_filename) unless options[:quiet]
|
||||
engine = ::Sass::Engine.new(open(sass_filename).read,
|
||||
:filename => sass_filename,
|
||||
|
@ -11,10 +11,12 @@ module Compass
|
||||
end
|
||||
|
||||
def perform
|
||||
Compass::Compiler.new(working_path,
|
||||
projectize(Compass.configuration.sass_dir),
|
||||
projectize(Compass.configuration.css_dir),
|
||||
Compass.sass_engine_options.merge(:quiet => options[:quiet])).run
|
||||
compiler = Compass::Compiler.new(working_path,
|
||||
projectize(Compass.configuration.sass_dir),
|
||||
projectize(Compass.configuration.css_dir),
|
||||
Compass.sass_engine_options.merge(:quiet => options[:quiet],
|
||||
:force => options[:force]))
|
||||
compiler.run
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user