snowpack-lit-scss-plugin

This package is a simple Snowpack plugin to load SCSS as JavaScript modules for use with LitElement. Any file with the .lit.scss extension will be compiled and loaded using Lit's css tagged template literal. Any other .scss files will be added to the document head.

Usage no npm install needed!

<script type="module">
  import snowpackLitScssPlugin from 'https://cdn.skypack.dev/snowpack-lit-scss-plugin';
</script>

README

snowpack-lit-scss-plugin

This package is a simple Snowpack plugin to load SCSS as JavaScript modules for use with LitElement. Any file with the .lit.scss extension will be compiled and loaded using Lit's css tagged template literal. Any other .scss files will be added to the document head.