[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/*
|
||||
examples/*/stylesheets/*
|
||||
examples/*/*.html
|
||||
examples/*/src/.sass-cache
|
||||
test/tmp
|
||||
test/fixtures/stylesheets/*/tmp
|
||||
test/fixtures/stylesheets/*/saved
|
||||
test/fixtures/stylesheets/empty
|
||||
test/fixtures/stylesheets/*/sass/.sass-cache
|
||||
pkg/*
|
||||
|
@ -64,7 +64,8 @@ module Compass
|
||||
:line_comments => options[:line_comments],
|
||||
:style => options[:style],
|
||||
:css_filename => css_filename,
|
||||
:load_paths => options[:load_paths])
|
||||
:load_paths => options[:load_paths],
|
||||
:cache_location => options[:cache_location])
|
||||
css_content = engine.render
|
||||
write_file(css_filename, css_content, options.merge(:force => true))
|
||||
else
|
||||
|
@ -10,6 +10,7 @@ module Compass
|
||||
self.from, self.to = from, to
|
||||
self.logger = options.delete(:logger)
|
||||
self.options = options
|
||||
self.options[:cache_location] ||= File.join(from, ".sass-cache")
|
||||
end
|
||||
|
||||
def sass_files
|
||||
|
Loading…
Reference in New Issue
Block a user