Search code examples
hooksasscompass-sass

Post compilation hook in Compass


I need a Compass hook after compiler compile all SCSS files to CSS in STANDALONE (no Rails) project.

Is there any post-compile hook in compass other than editing "compiler.rb" (which is not good solution, because of gem updates)?


Solution

  • Ok I found it ;) Compass has this hooks:

    • on_sprite_saved
    • on_sprite_generated
    • on_sprite_removed
    • on_stylesheet_saved (this is what I was looked for)
    • on_stylesheet_error

    Sad, that on http://compass-style.org/ there is no info about any hook.