Merge pull request #1204 from bhollis/lazy
Avoid loading middleman-core unless needed.
This commit is contained in:
commit
5616838007
|
@ -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'
|
||||||
|
|
||||||
require 'rack'
|
require 'rack'
|
||||||
require 'rack/mock'
|
require 'rack/mock'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue