Use Sass's Chain and Memory caching for faster caching, store this once in the configuration when watching so Sass doesn't do this with each iteration.
This commit is contained in:
parent
5f1c35d171
commit
4c814f97dd
@ -36,11 +36,24 @@ module Compass
|
|||||||
exit 0
|
exit 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
unless Compass.sass_engine_options[:cache_store]
|
||||||
|
Compass.configuration.sass_options ||= {}
|
||||||
|
Compass.configuration.sass_options[:cache_store] =
|
||||||
|
Sass::CacheStores::Chain.new(
|
||||||
|
Sass::CacheStores::Memory.new,
|
||||||
|
Sass::CacheStores::Filesystem.new(
|
||||||
|
Compass.sass_engine_options[:cache_location] ||
|
||||||
|
Sass::Engine::DEFAULT_OPTIONS[:cache_location]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
check_for_sass_files!(new_compiler_instance)
|
check_for_sass_files!(new_compiler_instance)
|
||||||
recompile
|
recompile
|
||||||
|
|
||||||
require 'fssm'
|
require 'fssm'
|
||||||
|
|
||||||
|
|
||||||
if options[:poll]
|
if options[:poll]
|
||||||
require "fssm/backends/polling"
|
require "fssm/backends/polling"
|
||||||
# have to silence the ruby warning about chaning a constant.
|
# have to silence the ruby warning about chaning a constant.
|
||||||
|
Loading…
Reference in New Issue
Block a user