Functions for using Sass'
@debug directives in a way that is capturable and testable.
# install in your projectnpm i @lunelson/sass-throw
The basic API consists of the following functions and mixins, which receive a string, and will trigger their corresponding directive (e.g.
@warn) with the given string when the
$throw-catch global variable is
false, but will return the string when
$throw-catch is true.
// Sass input file// NB: you need 'node_modules' in Sass' `importPaths` option;;.test
/* CSS output file */
Questions? File an issue, or tweet at me.