0.2.0 • Published 6 years ago
@brikcss/stakcss-bundler-sass v0.2.0
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:
```js stak({ bundlers: ['@brikcss/stakcss-bundler-sass'] }); ``` or with options and data: ```js stak({ bundlers: [{ run: '@brikcss/stakcss-bundler-sass', options: {} }] }); ```
CLI:
```bash stak ... --bundlers=@brikcss/stakcss-bundler-sass ``` or with bundlers inside a config file: ```bash 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:```js { 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.