Closed martinklepsch closed 3 years ago
Currently warning messages are printed by default handler.
Will need to work out how to define custom warning handler: http://jsass.readthedocs.io/en/latest/functions.html#special-functions-warn-error-debug
I implemented custom warning handler: https://github.com/Deraen/sass4clj/compare/warning-handler?expand=1
Unfortunately it can currently only access the warning message, not file path etc: https://github.com/bit3/jsass/issues/52
Sass4clj can't handle warnings are they are directly written to stdout by libsass/jsass.
sass4clj should throw exceptions for errors.
It would be nice if the boot task sets
boot.core/*warnings*
so the speak task picks those up. Also compilation errors should perhaps throw an exception?Somewhat related: https://github.com/adzerk-oss/boot-reload/issues/72