fix compass paths
This commit is contained in:
parent
17be87bafd
commit
199db07dc1
2 changed files with 12 additions and 12 deletions
|
@ -1,9 +1,8 @@
|
|||
2.0.0
|
||||
=====
|
||||
|
||||
- Use sinatra before/after hooks for Blog and FrontMatter
|
||||
- Converted a lot of Middleman::Server in CoreExtensions
|
||||
- Sprockets JS
|
||||
- Refactored Dynamically Reloadable Core
|
||||
- Combine views/ and public/ into a single source/ folder.
|
||||
- Support YAML front-matter
|
||||
- Blog-aware
|
||||
- Replaced Blueprint CSS templates with Susy
|
||||
- Blog-aware Feature
|
|
@ -28,14 +28,15 @@ module Middleman::CoreExtensions::Compass
|
|||
|
||||
config.add_import_path(config.sass_dir)
|
||||
end
|
||||
|
||||
# configure :build do
|
||||
# build_root = File.basename(self.build_dir)
|
||||
# ::Compass.configuration do |config|
|
||||
# config.css_dir = File.join(build_root, self.css_dir)
|
||||
# config.images_dir = File.join(build_root, self.images_dir)
|
||||
# end
|
||||
# end
|
||||
|
||||
# Required for relative paths
|
||||
configure :build do
|
||||
build_root = File.basename(self.build_dir)
|
||||
::Compass.configuration do |config|
|
||||
config.css_dir = File.join(build_root, self.css_dir)
|
||||
config.images_dir = File.join(build_root, self.images_dir)
|
||||
end
|
||||
end
|
||||
|
||||
app.execute_after_compass_init!
|
||||
|
||||
|
|
Loading…
Reference in a new issue