Created
May 21, 2021 21:57
-
-
Save nex3/0ade64ad43b92f1166d328081268f309 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as sassEmbedded from 'sass-embedded'; | |
// Spawns the embedded compiler, returns an object with the Node Sass API. | |
const sass = sassEmbedded.start(); | |
sass.renderSync({data: 'a {b: c}'}); | |
// Shuts down the embedded compiler, future calls to render et al now throw. | |
sass.close(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment