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