1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00

Always pretend we no nothing about the build folder. Fixes #283

This commit is contained in:
Thomas Reynolds 2012-03-03 15:49:49 -08:00
parent e285045fc5
commit 332a503460
2 changed files with 7 additions and 11 deletions

View file

@ -34,12 +34,12 @@ module Middleman::CoreExtensions::Compass
end
end
if build?
::Compass.configuration do |config|
config.environment = :production
config.project_path = File.join(root, build_dir)
end
end
# if build?
# ::Compass.configuration do |config|
# config.environment = :production
# config.project_path = File.join(root, build_dir)
# end
# end
run_hook :compass_config, ::Compass.configuration
run_hook :after_compass_config

View file

@ -40,11 +40,7 @@ module Middleman::Renderers::Sass
# Change Sass path, for url functions, to the build folder if we're building
# @return [Hash]
def sass_options
location_of_sass_file = if @context.build?
File.expand_path(@context.build_dir, @context.root)
else
File.expand_path(@context.source, @context.root)
end
location_of_sass_file = File.expand_path(@context.source, @context.root)
parts = basename.split('.')
parts.pop