@brikcss/stakcss-bundler-sass
v0.2.0
Published
Stakcss bundler which compiles sass.
Downloads
2
Maintainers
Readme
Stakcss SASS Bundler
Install
npm install @brikcss/stakcss @brikcss/stakcss-bundler-sass --save-dev
Usage
Add the bundler to Stakcss and configure like any other bundler:
Node:
stak({ bundlers: ['@brikcss/stakcss-bundler-sass'] });
or with options and data:
stak({ bundlers: [{ run: '@brikcss/stakcss-bundler-sass', options: {} }] });
CLI:
stak ... --bundlers=@brikcss/stakcss-bundler-sass
or with bundlers inside a config file:
stak --config=<path to config>
Bundler Configuration
Note: From a CLI, you must use a config file (--config=<path>
) to configure the bundler.
bundler.options
{Object} Options passed to SASS. The default options are:{ data: '', indentType: 'tab', indentWidth: 1, outputStyle: config.isProd ? 'compressed' : 'expanded', outFile: config.output, precision: 5, sourceComments: !config.isProd, sourceMap: !config.isProd }
See Stakcss for more on using Stakcss bundlers.