Moved :sass_cache_path from global to Sass renderer
This commit is contained in:
parent
c00f9d5782
commit
5368875d05
2 changed files with 5 additions and 5 deletions
|
@ -101,11 +101,6 @@ module Middleman
|
||||||
# @return [String]
|
# @return [String]
|
||||||
set :css_dir, "stylesheets"
|
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.
|
# Location of images within source. Used by HTML helpers and Compass.
|
||||||
# @return [String]
|
# @return [String]
|
||||||
set :images_dir, "images"
|
set :images_dir, "images"
|
||||||
|
|
|
@ -14,6 +14,11 @@ module Middleman
|
||||||
# Default sass options
|
# Default sass options
|
||||||
app.set :sass, {}
|
app.set :sass, {}
|
||||||
|
|
||||||
|
# Location of SASS .sass_cache directory.
|
||||||
|
# @return [String]
|
||||||
|
# set :sass_cache_path, "/tmp/middleman-app-name/sass_cache"
|
||||||
|
app.set(:sass_cache_path) { File.join(app.root_path, '.sass_cache') } # runtime compile of path
|
||||||
|
|
||||||
app.before_configuration do
|
app.before_configuration do
|
||||||
template_extensions :scss => :css,
|
template_extensions :scss => :css,
|
||||||
:sass => :css
|
:sass => :css
|
||||||
|
|
Loading…
Reference in a new issue