An open API service indexing awesome lists of open source software.

https://github.com/brikcss/stakcss-bundler-sass

Stakcss bundler that compiles SASS.
https://github.com/brikcss/stakcss-bundler-sass

Last synced: 9 months ago
JSON representation

Stakcss bundler that compiles SASS.

Awesome Lists containing this project

README

          

# Stakcss SASS Bundler

> Bundler for [Stakcss](https://github.com/brikcss/stakcss) that compiles [SASS](https://sass-lang.com/).




NPM version



NPM downloads per month



Travis branch



NPM version



Coverage Status



Commitizen friendly



semantic release



code style: prettier



## Install

```sh
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:
```sh
stak ... --bundlers=@brikcss/stakcss-bundler-sass
```

or with bundlers inside a config file:

```sh
stak --config=
```

### Bundler Configuration

_Note: From a CLI, you must use a config file (`--config=`)_ to configure the bundler.

- **`bundler.options`** _{Object}_ Options passed to [SASS](https://github.com/sass/node-sass#options). 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](https://github.com/brikcss/stakcss) for more on using Stakcss bundlers._