开发者社区> 镜像站> NPM> @emilbayes/css-pipeline
@emilbayes/css-pipeline
My personal PostCSS based CSS pipeline
Last updated 3 years ago by emilbayes .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @emilbayes/css-pipeline 
SYNC missed versions from official npm registry.

@emilbayes/css-pipeline

Build Status

My personal PostCSS based CSS pipeline

Usage

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:

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

npm install @emilbayes/css-pipeline

License

ISC

Current Tags

  • 2.0.0                                ...           latest (3 years ago)

5 Versions

  • 2.0.0                                ...           3 years ago
  • 1.3.0                                ...           4 years ago
  • 1.2.3                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 1
Last Month 6
Dependencies (10)
Dev Dependencies (1)
Dependents (0)
None