Correct path in sass-assets-path test
This commit is contained in:
parent
1c9810483b
commit
f1eae1e0c8
|
@ -1,6 +1,7 @@
|
|||
Master
|
||||
===
|
||||
|
||||
* Add `sass_assets_paths` option for arbitrary sass partial locations.
|
||||
* Don't catch CoffeeScript errors when in build mode.
|
||||
* Extract load_paths so they aren't locked into the binary
|
||||
* Add middleman/rack for better config.ru support
|
||||
|
|
|
@ -107,16 +107,6 @@ module Middleman
|
|||
# @return [String]
|
||||
set :css_dir, "stylesheets"
|
||||
|
||||
# Location of javascripts external to source directory.
|
||||
# @return [Array]
|
||||
# set :js_assets_paths, ["#{root}/assets/javascripts/", "/path/2/external/js/repository/"]
|
||||
set :js_assets_paths, []
|
||||
|
||||
# Location of SASS/SCSS files external to source directory.
|
||||
# @return [Array]
|
||||
# set :sass_assets_paths, ["#{root}/assets/sass/", "/path/2/external/sass/repository/"]
|
||||
set :sass_assets_paths, []
|
||||
|
||||
# Location of images within source. Used by HTML helpers and Compass.
|
||||
# @return [String]
|
||||
set :images_dir, "images"
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
|
||||
set :sass_assets_paths, [
|
||||
"#{root}/assets/stylesheets/",
|
||||
# load from another app within gem source
|
||||
"#{File.dirname(File.dirname(File.dirname(File.dirname(__FILE__))))}/fixtures/preview-app/source/stylesheets/"
|
||||
File.join(root, "assets", "stylesheets"),
|
||||
File.join(root, "my-vendor", "stylesheets")
|
||||
]
|
|
@ -0,0 +1,2 @@
|
|||
body
|
||||
font-size: 18px
|
|
@ -17,6 +17,11 @@ module Middleman
|
|||
# done with it
|
||||
app.define_hook :compass_config
|
||||
|
||||
# Location of SASS/SCSS files external to source directory.
|
||||
# @return [Array]
|
||||
# set :sass_assets_paths, ["#{root}/assets/sass/", "/path/2/external/sass/repository/"]
|
||||
app.set :sass_assets_paths, []
|
||||
|
||||
app.after_configuration do
|
||||
::Compass.configuration do |config|
|
||||
config.project_path = source_dir
|
||||
|
|
Loading…
Reference in a new issue