diff --git a/middleman-more/lib/middleman-more/core_extensions/compass.rb b/middleman-more/lib/middleman-more/core_extensions/compass.rb index 72e51896..bdadada3 100644 --- a/middleman-more/lib/middleman-more/core_extensions/compass.rb +++ b/middleman-more/lib/middleman-more/core_extensions/compass.rb @@ -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 diff --git a/middleman-more/lib/middleman-more/renderers/sass.rb b/middleman-more/lib/middleman-more/renderers/sass.rb index af82197f..fc9285bc 100644 --- a/middleman-more/lib/middleman-more/renderers/sass.rb +++ b/middleman-more/lib/middleman-more/renderers/sass.rb @@ -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