AleshaOleg/postcss-sass

A Sass parser for PostCSS, using gonzales-pe. https://www.npmjs.com/package/postcss-sass

92

stars

452

commits

JavaScript

primary language

Jan 14, 2025

updated

gonzales-pe
postcss
postcss-sass
sass

README

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
});

Contributors

AleshaOleg

302 commits

gucong3000

16 commits

dependabot[bot]

15 commits

AleshaOleg/postcss-sass

A Sass parser for PostCSS, using gonzales-pe. https://www.npmjs.com/package/postcss-sass

92

stars

452

commits

JavaScript

primary language

Jan 14, 2025

updated

gonzales-pe
postcss
postcss-sass
sass

README

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
});

Contributors

AleshaOleg

302 commits

gucong3000

16 commits

dependabot[bot]

15 commits

Languages

JavaScript

85.9%

Sass

14.1%