Skip to content

Instantly share code, notes, and snippets.

@moonglum
Created February 6, 2025 14:06
Show Gist options
  • Save moonglum/b69f360d3c2f56d800f9738d213e0a39 to your computer and use it in GitHub Desktop.
Save moonglum/b69f360d3c2f56d800f9738d213e0a39 to your computer and use it in GitHub Desktop.

Revisions

  1. moonglum created this gist Feb 6, 2025.
    4 changes: 4 additions & 0 deletions index.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    import * as sass from 'sass';

    let result = sass.compile('style/index.scss');
    console.log(result);
    5 changes: 5 additions & 0 deletions index.scss
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    @use 'helper';

    body {
    background: red;
    }
    3 changes: 3 additions & 0 deletions lib.scss
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    h1, h2, h3 {
    text-wrap: balance;
    }
    8 changes: 8 additions & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    {
    "name": "sassy",
    "main": "index.js",
    "type": "module",
    "dependencies": {
    "sass": "^1.84.0"
    }
    }