Skip to content

eklingen/vinyl-stream-postcss

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published