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

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

Stakcss bundler that runs PostCSS.
https://github.com/brikcss/stakcss-bundler-postcss

Last synced: 2 months ago
JSON representation

Stakcss bundler that runs PostCSS.

Awesome Lists containing this project

README

        

# Stakcss PostCSS Bundler

> [Stakcss](https://github.com/brikcss/stakcss) Bundler that compiles [PostCSS](http://postcss.org/).




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-postcss --save-dev
```

## Usage

- Node:
```js
stak({
bundlers: ['@brikcss/stakcss-bundler-postcss']
});
```

or with options and data:

```js
stak({
bundlers: [{
run: '@brikcss/stakcss-bundler-postcss',
options: {}
}]
});
```

- CLI:
```sh
stak [--output=] --bundlers=@brikcss/stakcss-bundler-postcss
```

or with 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 [PostCSS](https://github.com/postcss/postcss#options). The default options are:

```js
{
from: typeof config.source === 'string' ? config.source : '',
to: config.output,
map: config.isProd
? false
: {
inline: false,
prev: config.sourceMap ? config.sourceMap : false
}
}
```

- **`bundler.plugins`** _{Array}_ Array of PostCSS plugins to use.

_See [Stakcss](https://github.com/brikcss/stakcss) for more on using Stakcss bundlers._