Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/emilbayes/css-pipeline
My personal PostCSS based CSS pipeline
https://github.com/emilbayes/css-pipeline
cssnext pipeline postcss
Last synced: 17 days ago
JSON representation
My personal PostCSS based CSS pipeline
- Host: GitHub
- URL: https://github.com/emilbayes/css-pipeline
- Owner: emilbayes
- License: isc
- Created: 2016-11-02T05:27:30.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-05T08:38:10.000Z (almost 3 years ago)
- Last Synced: 2025-01-01T21:47:22.539Z (22 days ago)
- Topics: cssnext, pipeline, postcss
- Language: JavaScript
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# `@emilbayes/css-pipeline`
[![Build Status](https://travis-ci.org/emilbayes/css-pipeline.svg?branch=master)](https://travis-ci.org/emilbayes/css-pipeline)
> My personal PostCSS based CSS pipeline
## Usage
```js
var postcss = require('postcss')
var pipeline = require('@emilbayes/css-pipeline')postcss(pipeline()).process(cssString).then(oncomplete, onerror)
function oncomplete (result) {
console.log(result.css)
process.exit(0)
}
function onerror (err) {
console.error(err)
process.exit(1)
}```
Or with [`postcss-cli`](https://github.com/postcss/postcss-cli):
```sh
cat index.css | postcss --use @emilbayes/css-pipeline > bundle.css
```## API
### `pipeline(opts)`
Returns a PostCSS plugin.
* `opts.debug`, also available through the `DEBUG` env var. Defaults to `false`
* `opts.rtl`, also available through the `RTL` env var. Defaults to `false`## Install
```sh
npm install @emilbayes/css-pipeline
```## License
[ISC](LICENSE.md)