Apply fix from 32716f3729
- avoid loading middleman-core unless needed. Fixes #1203
This commit is contained in:
parent
58616ce486
commit
a88f12a262
|
@ -1,6 +1,3 @@
|
||||||
require 'middleman-core'
|
|
||||||
require 'middleman-core/logger'
|
|
||||||
|
|
||||||
require 'fileutils'
|
require 'fileutils'
|
||||||
require 'set'
|
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?'
|
raise Thor::Error, 'Error: Could not find a Middleman project config, perhaps you are in the wrong folder?'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
require 'middleman-core'
|
||||||
|
require 'middleman-core/logger'
|
||||||
|
|
||||||
# Use Rack::Test for inspecting a running server for output
|
# Use Rack::Test for inspecting a running server for output
|
||||||
require 'rack'
|
require 'rack'
|
||||||
require 'rack/test'
|
require 'rack/test'
|
||||||
|
|
Loading…
Reference in a new issue