1. postcss-sass
A Sass parser for PostCSS, using gonzales-pe.
postcss-sass
Package: postcss-sass
Created by: AleshaOleg
Last modified: Fri, 24 Jun 2022 10:50:24 GMT
Version: 0.5.0
License: MIT
Downloads: 4,740,255
Repository: https://github.com/AleshaOleg/postcss-sass

Install

npm install postcss-sass
yarn add postcss-sass

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

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code