0.0.1 • Published 9 years ago

losass-throw v0.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

_throw Build Status Dependency Status

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/

Contributing

Docs

$ gulp docs

Testing

$ npm test