Skip to content

Instantly share code, notes, and snippets.

@nex3
Created May 21, 2021 21:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nex3/0ade64ad43b92f1166d328081268f309 to your computer and use it in GitHub Desktop.
Save nex3/0ade64ad43b92f1166d328081268f309 to your computer and use it in GitHub Desktop.
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