use .sass-cache everywhere
This commit is contained in:
parent
e3bb956649
commit
c7e35b95ba
|
@ -14,10 +14,10 @@ module Middleman
|
|||
# Default sass options
|
||||
app.set :sass, {}
|
||||
|
||||
# Location of SASS .sass_cache directory.
|
||||
# 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
|
||||
# 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
|
||||
template_extensions :scss => :css,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Feature: SASS .sass_cache custom location
|
||||
Feature: SASS .sass-cache custom location
|
||||
|
||||
Scenario: Using the default location for .sass_cache folder
|
||||
Scenario: Using the default location for .sass-cache folder
|
||||
Given the Server is running at "sass-cache-path-default-app"
|
||||
|
||||
When I go to "/stylesheets/plain.css"
|
||||
|
@ -10,10 +10,10 @@ Feature: SASS .sass_cache custom location
|
|||
# Not sure how to test this location, as the directory is stored outside of the app root
|
||||
# during testing, but inside app root in "production"
|
||||
|
||||
# Then a directory named ".sass_cache" should exist
|
||||
# Then a directory named ".sass-cache" should exist
|
||||
|
||||
|
||||
Scenario: Using a custom location for .sass_cache folder
|
||||
Scenario: Using a custom location for .sass-cache folder
|
||||
Given the Server is running at "sass-cache-path-custom-app"
|
||||
|
||||
When I go to "/stylesheets/plain.css"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
|
||||
# Using default setting
|
||||
# set :sass_cache_path, File.join(Dir.pwd, '.sass_cache')
|
||||
# set :sass_cache_path, File.join(Dir.pwd, '.sass-cache')
|
||||
|
|
Loading…
Reference in a new issue