Neverending Programming Mistakes
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    @emilbayes/css-pipelinepublic

    @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

    Keywords

    none

    install

    npm i @emilbayes/css-pipeline

    Downloadslast 7 days

    41

    version

    2.0.0

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar