[Command Line] Store sass cache files in the sass directory of the project. Closes GH-8.
This commit is contained in:
parent
faadde2379
commit
fcdaf41dbc
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,8 +2,10 @@
|
|||||||
tmp/*
|
tmp/*
|
||||||
examples/*/stylesheets/*
|
examples/*/stylesheets/*
|
||||||
examples/*/*.html
|
examples/*/*.html
|
||||||
|
examples/*/src/.sass-cache
|
||||||
test/tmp
|
test/tmp
|
||||||
test/fixtures/stylesheets/*/tmp
|
test/fixtures/stylesheets/*/tmp
|
||||||
test/fixtures/stylesheets/*/saved
|
test/fixtures/stylesheets/*/saved
|
||||||
test/fixtures/stylesheets/empty
|
test/fixtures/stylesheets/empty
|
||||||
|
test/fixtures/stylesheets/*/sass/.sass-cache
|
||||||
pkg/*
|
pkg/*
|
||||||
|
@ -64,7 +64,8 @@ module Compass
|
|||||||
:line_comments => options[:line_comments],
|
:line_comments => options[:line_comments],
|
||||||
:style => options[:style],
|
:style => options[:style],
|
||||||
:css_filename => css_filename,
|
:css_filename => css_filename,
|
||||||
:load_paths => options[:load_paths])
|
:load_paths => options[:load_paths],
|
||||||
|
:cache_location => options[:cache_location])
|
||||||
css_content = engine.render
|
css_content = engine.render
|
||||||
write_file(css_filename, css_content, options.merge(:force => true))
|
write_file(css_filename, css_content, options.merge(:force => true))
|
||||||
else
|
else
|
||||||
|
@ -10,6 +10,7 @@ module Compass
|
|||||||
self.from, self.to = from, to
|
self.from, self.to = from, to
|
||||||
self.logger = options.delete(:logger)
|
self.logger = options.delete(:logger)
|
||||||
self.options = options
|
self.options = options
|
||||||
|
self.options[:cache_location] ||= File.join(from, ".sass-cache")
|
||||||
end
|
end
|
||||||
|
|
||||||
def sass_files
|
def sass_files
|
||||||
|
Loading…
Reference in New Issue
Block a user