Allow extensions to optionally register to be automatically activated before configuration.
This commit is contained in:
parent
f89a76747e
commit
5d4cae2a06
3 changed files with 26 additions and 4 deletions
|
@ -86,6 +86,10 @@ module Middleman
|
|||
|
||||
::Middleman::Extension.clear_after_extension_callbacks
|
||||
|
||||
::Middleman::Extensions.auto_activate_before_configuration.each do |ext_name|
|
||||
activate ext_name
|
||||
end
|
||||
|
||||
if ENV['AUTOLOAD_SPROCKETS'] != 'false'
|
||||
begin
|
||||
require 'middleman-sprockets'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue