@eklingen/vinyl-stream-postcss

    3.0.2 • Public • Published

    Small vinyl-stream wrapper -aka Gulp plugin- for postcss

    Run PostCSS within your streams. This fully supports source maps.

    NOTE: No tests have been written yet!

    Installation

    yarn install. Or npm install. Or just copy the files to your own project.

    Usage

    const postcssWrapper = require('@eklingen/vinyl-stream-postcss')
    stream.pipe(postcssWrapper())

    This plugin assumes an existing configuration dotfile where postcss can find it.

    Options

    There is one option.

    postcss

    Both the plugins array and the options object will be passed to postcss. See the "postcss" for more information.

    postcssWrapper({
      postcss: {
        plugins: [],
        options: {
          parser: 'scss',
          stringifier: null
        }
      }
    })

    Dependencies

    This package requires "postcss" and "vinyl-sourcemaps-apply".


    Copyright (c) 2019 Elco Klingen. MIT License.

    Install

    npm i @eklingen/vinyl-stream-postcss

    DownloadsWeekly Downloads

    49

    Version

    3.0.2

    License

    MIT

    Unpacked Size

    6.81 kB

    Total Files

    6

    Last publish

    Collaborators

    • eklingen