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.
- Host: GitHub
- URL: https://github.com/brikcss/stakcss-bundler-sass
- Owner: brikcss
- Created: 2018-03-28T05:05:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-08T20:43:55.000Z (over 7 years ago)
- Last Synced: 2025-09-20T02:58:38.257Z (9 months ago)
- Language: JavaScript
- Size: 85 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stakcss SASS Bundler
> Bundler for [Stakcss](https://github.com/brikcss/stakcss) that compiles [SASS](https://sass-lang.com/).
## 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._