Package Exports
- less-css-stream
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (less-css-stream) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
sass-css-stream
A sass to css stream wrapper around node-sass.
Takes a file argument and an optional opts argument that is passed through to node-sass. Returns a through stream that has sass contents written in and outputs the compiled css.
Can be as a parcelify or cartero transform.
#example
var sassCssStream = require( '../' );
var fs = require( 'fs' );
var path = require( 'path' );
var inputFile = path.join( __dirname, "sampleStyle.scss" );
var opts = { includePaths : [ path.resolve( __dirname, 'bourbon' ) ] };
fs.createReadStream( inputFile ).pipe( sassCssStream( inputFile, opts ) ).pipe( process.stdout );
#usage
sassCssStream( file [, opts ] )
file
- the sass file being
opts
- optional options hash passed through to node-sass.renderSync