Kaba SCSS
Kaba SCSS is a wrapper around a SCSS compiler, including convenience functions that are used by Kaba.
You can use the compiler by just importing the main object:
const KabaScss = require("kaba-scss");
let compiler = new KabaScss(options, logger);
// runs the compiler and returns after all files have compiled
await compiler.run();
// if you configured to use a watcher, the above function will only resolve if you stop the watcher
compiler.stop();
Configuration
new KabaScss(options, logger);
parameters
name | type | description |
---|---|---|
options.debug | boolean | Flag to produce a debug build. |
options.sourceMaps | boolean | Flag to include source maps. |
options.watch | boolean | Flag to start a watcher instead of a one-time build. |
options.lint | boolean | Flag to also lint the build. |
options.analyze | boolean | Flag to only analyze the build (will set the return value of run() accordingly). |
options.cwd | string | The current working directory. |
options.browserList | string[] | The list of supported browsers. Passed to browserslist |
options.fix | boolean | Flag to also fix linting errors. |
Table of Contents