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
|
||||||
|
begin
|
||||||
require "middleman-sprockets"
|
require "middleman-sprockets"
|
||||||
activate(: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