diff --git a/lib/compass/configuration/helpers.rb b/lib/compass/configuration/helpers.rb index 00afa6e7..37fc478a 100644 --- a/lib/compass/configuration/helpers.rb +++ b/lib/compass/configuration/helpers.rb @@ -65,6 +65,12 @@ module Compass Sass::Plugin.add_template_location sass_dir, css_dir end end + Sass::Plugin.on_updating_stylesheet do |sass_file, css_file| + Compass.configuration.run_callback(:stylesheet_saved, css_file) + end + Sass::Plugin.on_compilation_error do |e, filename, css| + Compass.configuration.run_callback(:stylesheet_error, filename, e.message) + end end def sass_engine_options