Run PostCSS within your streams. This fully supports source maps.
NOTE: No tests have been written yet!
yarn install
. Or npm install
. Or just copy the files to your own project.
const postcssWrapper = require('@eklingen/vinyl-stream-postcss')
stream.pipe(postcssWrapper())
This plugin assumes an existing configuration dotfile where postcss can find it.
There is one option.
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
}
}
})
This package requires "postcss" and "vinyl-sourcemaps-apply".
Copyright (c) 2019 Elco Klingen. MIT License.