Be more defensive against middleman-sprockets missing

This commit is contained in:
Thomas Reynolds 2012-05-28 13:30:54 -07:00
parent 67e78f20c7
commit 51e1de54f6

View file

@ -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?