node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »


postcss-sass Build Status

A Sass parser for PostCSS, using gonzales-pe.

Not all Sass syntax supported. Parser under development.

This module does not compile Sass. It simply parses mixins as custom at-rules & variables as properties, so that PostCSS plugins can then transform Sass source code alongside CSS.


npm i postcss-sass --save


var postcssSass = require("postcss-sass");
postcss(plugins).process(sass, { parser: postcssSass }).then(function (result) {
    result.content // Sass with transformations