2.0.0 • Published 2 years ago

sass-css-stream v2.0.0

Weekly downloads
324
License
MIT
Repository
github
Last release
2 years ago

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 to transform

opts - optional options hash passed through to node-sass.renderSync

2.0.0

2 years ago

1.0.0

6 years ago

0.1.6

9 years ago

0.1.5

9 years ago

0.1.4

9 years ago

0.1.2

9 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.1

10 years ago