From 1efa585c1151f9141054f6afff04540a90b731b1 Mon Sep 17 00:00:00 2001 From: Thomas Reynolds Date: Tue, 31 May 2016 13:07:58 -0700 Subject: [PATCH] Fix #1866 --- middleman-core/lib/middleman-core/application.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/middleman-core/lib/middleman-core/application.rb b/middleman-core/lib/middleman-core/application.rb index 379d1e81..918f65ee 100644 --- a/middleman-core/lib/middleman-core/application.rb +++ b/middleman-core/lib/middleman-core/application.rb @@ -266,6 +266,8 @@ module Middleman # Evaluate a passed block if given config_context.instance_exec(&block) if block_given? + apply_cli_options + execute_callbacks(:before_sitemap) # Initialize the Sitemap @@ -276,8 +278,6 @@ module Middleman # Before config is parsed, before extensions get to it. execute_callbacks(:initialized) - apply_cli_options - # Before config is parsed. Mostly used for extensions. execute_callbacks(:before_configuration)