Allow skipping sitemap. Helps #1837

This commit is contained in:
Thomas Reynolds 2016-03-17 13:23:36 -07:00
parent 7484c9f242
commit 5337d0640b
4 changed files with 10 additions and 0 deletions

View file

@ -47,6 +47,8 @@ end
::Middleman::Logger.singleton(3)
::Middleman::Cli.config = ::Middleman::Application.new do
config[:exit_before_ready] = true
config[:watcher_disable] = true
config[:disable_sitemap] = true
end.config
# Require the Middleman version

View file

@ -23,6 +23,8 @@ module Middleman::Cli
::Middleman::Logger.singleton(2, false)
app = ::Middleman::Application.new do
config[:disable_sitemap] = true
config[:watcher_disable] = true
config[:exit_before_ready] = true
config[:environment] = opts[:environment].to_sym if opts[:environment]
end