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
if autoload_sprockets
require "middleman-sprockets"
activate(:sprockets)
begin
require "middleman-sprockets"
activate(:sprockets)
rescue LoadError
end
end
run_hook :build_config if build?