diff --git a/middleman-cli/lib/middleman-cli/build.rb b/middleman-cli/lib/middleman-cli/build.rb index 403b6aaa..c9bf2ab6 100644 --- a/middleman-cli/lib/middleman-cli/build.rb +++ b/middleman-cli/lib/middleman-cli/build.rb @@ -1,6 +1,3 @@ -require 'middleman-core' -require 'middleman-core/logger' - require 'fileutils' require 'set' @@ -50,6 +47,9 @@ module Middleman::Cli raise Thor::Error, 'Error: Could not find a Middleman project config, perhaps you are in the wrong folder?' end + require 'middleman-core' + require 'middleman-core/logger' + require 'rack' require 'rack/mock'