losass-throw
v0.0.1
Published
## 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: ```scss @error 'some fa
Downloads
2
Readme
_throw [] (https://david-dm.org/losass/throw#info=devDependencies)
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:
@return _throw('some failure')
If you want to suppress errors and warning, you simply need to enable the debug mode like this:
$__DEBUG: true;
If you want to use errors instead of warnings enable the strict mode:
$__STRICT: true;
Installation
$ npm install losass-throw --save-dev
@import 'losass-throw/scss/throw';
API documentation
[https://losass.github.io/throw/] (https://losass.github.io/throw/)
Contributing
Docs
$ gulp docs
Testing
$ npm test