postcss-sass
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/postcss-sass package

0.5.0 • Public • Published

postcss-sass

Build Status Coverage Status Greenkeeper badge Cult Of Martians

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.

Install

npm i postcss-sass --save

Usage

var postcssSass = require("postcss-sass");

postcss(plugins).process(sass, { syntax: postcssSass }).then(function (result) {
    result.content // Sass with transformations
});

/postcss-sass/

    Package Sidebar

    Install

    npm i postcss-sass

    Weekly Downloads

    928,789

    Version

    0.5.0

    License

    MIT

    Unpacked Size

    23.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • ai
    • gucong
    • sdwvit
    • aleshaoleg