@sass-fairy/exception
Provides Sass functions to standardize exception messages and assist with common validation.
Install
Requires
- Dart Sass:
^1.52.0
Install the package:
npm install @sass-fairy/exception@next
Use the package like any other Sass module:
@use '@sass-fairy/exception';
Configure Sass options to use the functions provided by this package:
const sass = require('sass');
const ExceptionFunctions = require('@sass-fairy/exception');
sass.render({
file: scss_filename,
includePaths: ['node_modules'],
functions: {
...ExceptionFunctions
}
});
Documentation
See sass-fairy.com/next/api/exception for more information about this package.