setup sprockets after config parse

This commit is contained in:
Thomas Reynolds 2011-08-09 11:08:46 -07:00
parent 9333763333
commit 14efce4b71

View file

@ -5,9 +5,11 @@ module Middleman::CoreExtensions::Sprockets
def registered(app) def registered(app)
app.set :js_compressor, false app.set :js_compressor, false
app.after_configuration do
app.map "/#{app.js_dir}" do app.map "/#{app.js_dir}" do
run JavascriptEnvironment.new(app) run JavascriptEnvironment.new(app)
end end
end
# app.map "/#{app.css_dir}" do # app.map "/#{app.css_dir}" do
# run StylesheetEnvironment.new(app) # run StylesheetEnvironment.new(app)
# end # end