Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
CHANGELOG.md | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
index.js | 2 years ago | |
package.json | 2 years ago | |
parse.js | 2 years ago | |
parser.js | 2 years ago | |
stringifier.js | 2 years ago | |
stringify.js | 2 years ago |
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, { syntax: postcssSass }).then(function (result) {
result.content // Sass with transformations
});