Using
Sometimes it's not ideal to use the @error
directive of Sass, this plugin gives you an alternative called throw
. Because it's not possible to create custom directives, it must be used as a function. So instead of this:
@error 'some failure';
you should use this:
If you want to suppress errors and warning, you simply need to enable the debug mode like this:
;
If you want to use errors instead of warnings enable the strict mode:
;
Installation
$ npm install losass-throw --save-dev
;
API documentation
https://losass.github.io/throw/
Contributing
Docs
$ gulp docs
Testing
$ npm test