Coder Social home page Coder Social logo

sass-css-stream's Introduction

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

sass-css-stream's People

Contributors

dgbeck avatar go-oleg avatar etolstanov avatar johanneslumpe avatar jbkirby avatar mkoryak avatar

Stargazers

 avatar Eirik L. Vullum avatar

Watchers

Joaquín avatar Javier Viola avatar Alejandro García Iglesias avatar James Cloos avatar  avatar Hernán avatar  avatar

sass-css-stream's Issues

Sass RenderSync options?

Is it possible or have you ever needed to pass options to the sass renderSync? I'd like to concat node-bourbon and node-neat on to my sass includePaths as shown here: https://medium.com/publish-what-you-learn/a1ea2dd606b

If not I can just fork this project and have it be a whole new transform. I figured I'd check first to see if passing options to sass is something that should be done in some other way.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.