diff --git a/lib/middleman/core_extensions/sprockets.rb b/lib/middleman/core_extensions/sprockets.rb index a7d75c12..801e18ca 100644 --- a/lib/middleman/core_extensions/sprockets.rb +++ b/lib/middleman/core_extensions/sprockets.rb @@ -46,6 +46,11 @@ module Middleman::CoreExtensions::Sprockets # rescue LoadError # end end + + def javascript_exception_response(exception) + expire_index! + super(exception) + end end # class StylesheetEnvironment < MiddlemanEnvironment @@ -59,5 +64,10 @@ module Middleman::CoreExtensions::Sprockets # stylesheets_path = File.join(File.expand_path(app.views), app.css_dir) # append_path stylesheets_path # end + # + # def css_exception_response(exception) + # expire_index! + # super(exception) + # end # end end \ No newline at end of file