sass-css-stream

2.0.0 • Public • Published

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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i sass-css-stream

    Weekly Downloads

    43

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    3.91 kB

    Total Files

    6

    Last publish

    Collaborators

    • rotundasoftwareowner
    • davidbeck
    • gonzalezger
    • rodriguezmartin
    • rotundasoftware-devops
    • alejandroiglesias
    • ezetol
    • jonac22
    • martinflory
    • hlogran
    • nico-ledesma