@eklingen/vinyl-stream-postcss

3.0.5 • 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.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @eklingen/vinyl-stream-postcss

    Weekly Downloads

    12

    Version

    3.0.5

    License

    MIT

    Unpacked Size

    6.66 kB

    Total Files

    5

    Last publish

    Collaborators

    • eklingen