Be more defensive against middleman-sprockets missing
This commit is contained in:
parent
67e78f20c7
commit
51e1de54f6
|
@ -138,8 +138,11 @@ module Middleman
|
||||||
end
|
end
|
||||||
|
|
||||||
if autoload_sprockets
|
if autoload_sprockets
|
||||||
require "middleman-sprockets"
|
begin
|
||||||
activate(:sprockets)
|
require "middleman-sprockets"
|
||||||
|
activate(:sprockets)
|
||||||
|
rescue LoadError
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
run_hook :build_config if build?
|
run_hook :build_config if build?
|
||||||
|
|
Loading…
Reference in a new issue