losass-throw

0.0.1 • Public • Published

_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

/losass-throw/

    Package Sidebar

    Install

    npm i losass-throw

    Weekly Downloads

    2

    Version

    0.0.1

    License

    ISC

    Last publish

    Collaborators

    • mmintel