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.
- Host: GitHub
- URL: https://github.com/brikcss/stakcss-bundler-postcss
- Owner: brikcss
- Created: 2018-03-28T06:34:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-08T20:43:49.000Z (over 6 years ago)
- Last Synced: 2025-02-14T17:16:16.839Z (4 months ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stakcss PostCSS Bundler
> [Stakcss](https://github.com/brikcss/stakcss) Bundler that compiles [PostCSS](http://postcss.org/).
## 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._