Skip to content

Made for the poor souls trying to use SASS/SCSS on Deno using ESBuild as bundler who did not know `esbuild-sass-plugin` was not compatible with Deno due to Dart-SASS being a pain.

License

Notifications You must be signed in to change notification settings

LePichu/esbuild-plugin-sass-deno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESBuild Plugin SASS (Deno)

Made for the poor souls trying to use SASS/SCSS on Deno using ESBuild as bundler who did not know esbuild-sass-plugin was not compatible with Deno due to Dart-SASS being a pain.

Usage

  • Buildscript
import { build } from "https://deno.land/x/esbuild/mod.ts"
import sassPlugin from "https://deno.land/x/esbuild_plugin_sass_deno/mod.ts"

build({
    entryPoints: [
        "example/in.ts"
    ],
    bundle: true,
    outfile: "example/out.js",
    plugins: [sassPlugin()]
})
  • Main Entrypoint File:
import styles from "./styles.scss"

document.getElementsByTagName("head")[0].innerHTML += `<style>${styles}</style>`

License

esbuild-plugin-sass-deno is licensed under MIT License, see LICENSE for more information.

About

Made for the poor souls trying to use SASS/SCSS on Deno using ESBuild as bundler who did not know `esbuild-sass-plugin` was not compatible with Deno due to Dart-SASS being a pain.

Resources

License

Stars

Watchers

Forks

Packages

No packages published