setup sprockets after config parse
This commit is contained in:
parent
9333763333
commit
14efce4b71
1 changed files with 6 additions and 4 deletions
|
@ -5,8 +5,10 @@ module Middleman::CoreExtensions::Sprockets
|
||||||
def registered(app)
|
def registered(app)
|
||||||
app.set :js_compressor, false
|
app.set :js_compressor, false
|
||||||
|
|
||||||
app.map "/#{app.js_dir}" do
|
app.after_configuration do
|
||||||
run JavascriptEnvironment.new(app)
|
app.map "/#{app.js_dir}" do
|
||||||
|
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)
|
||||||
|
|
Loading…
Reference in a new issue