diff --git a/middleman-core/lib/middleman-core/application.rb b/middleman-core/lib/middleman-core/application.rb index 093edc13..383be6f8 100644 --- a/middleman-core/lib/middleman-core/application.rb +++ b/middleman-core/lib/middleman-core/application.rb @@ -101,6 +101,11 @@ module Middleman # @return [String] set :css_dir, "stylesheets" + # Location of SASS .sass_cache directory. + # @return [String] + # set :sass_cache_path, "/tmp/middleman-app-name/sass_cache" + set(:sass_cache_path) { File.join(root_path, '.sass_cache') } # runtime compile of path + # Location of images within source. Used by HTML helpers and Compass. # @return [String] set :images_dir, "images" diff --git a/middleman-more/lib/middleman-more/core_extensions/compass.rb b/middleman-more/lib/middleman-more/core_extensions/compass.rb index 7c488bc5..2735fb08 100644 --- a/middleman-more/lib/middleman-more/core_extensions/compass.rb +++ b/middleman-more/lib/middleman-more/core_extensions/compass.rb @@ -21,7 +21,7 @@ module Middleman ::Compass.configuration do |config| config.project_path = source_dir config.environment = :development - config.cache_path = File.join(root, ".sass-cache") + config.cache_path = sass_cache_path config.sass_dir = css_dir config.css_dir = css_dir config.javascripts_dir = js_dir