diff --git a/middleman-more/lib/middleman-more/core_extensions/compass.rb b/middleman-more/lib/middleman-more/core_extensions/compass.rb index 872da23b..72e51896 100644 --- a/middleman-more/lib/middleman-more/core_extensions/compass.rb +++ b/middleman-more/lib/middleman-more/core_extensions/compass.rb @@ -34,11 +34,12 @@ module Middleman::CoreExtensions::Compass end end - # if build? - # ::Compass.configuration do |config| - # config.environment = :production - # 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