@eklingen/vinyl-stream-sass
v6.0.0
Published
Small vinyl-stream wrapper -aka Gulp plugin- for dart-sass.
Downloads
111
Maintainers
Readme
Small vinyl-stream wrapper -aka Gulp plugin- for sass (dart-sass)
Run Sass within your streams. This fully supports source maps.
NOTE: No tests have been written yet! NOTE: Since v5.0.0, the binary option has been removed.
Installation
yarn install
. Or npm install
. Or just copy the files to your own project.
Usage
const sassWrapper = require('@eklingen/vinyl-stream-sass')
stream.pipe(sassWrapper())
Options
There are a few options.
sass
These options are passed verbatim into sass
. For more information, see the "sass" documentation.
sassWrapper({
outputStyle: 'compressed', // or 'extended'
charset: true,
errorCss: true,
sourceMap: true,
sourceMapContents: true
})
Dependencies
This package requires "sass" and "source-map".
Copyright (c) 2019 Elco Klingen. MIT License.