@chronocide/esbuild-plugin-sass
v0.2.2
Published
<div align="center"> <h1>@chronocide/esbuild-plugin-sass</h1> <p><a href="https://sass-lang.com/">Sass</a> plugin for <a href="https://esbuild.github.io/">esbuild</a>.</p> </div>
Readme
Why?
esbuild-sass-plugin makes use of tea, which is crypto spam. I do not wish to support such packages and therefore made my own.
Installation
Install using npm:
npm i @chronocide/esbuild-plugin-sass -DUsage
import esbuild from 'esbuild';
import sass from 'esbuild-plugin-sass';
esbuild.build({
...
plugins: [sass()] // index.css (css loader)
});
esbuild.build({
...
plugins: [sass({ inline: true })] // inline style (text loader)
})Options
Supports most sass options.
| Option | Type | Default
| - | - | - |
| depedencies | string[] | [] |
| minify | boolean | false |
| sourcemap | boolean | false |
| plugins | Record<string, sass.CustomFunction<'async'>> | undefined |
| importers | (sass.NodePackageImporter \| sass.Importer<'async'>)[] | [] |
| alert.ascii | boolean | undefined |
| alert.colour | boolean | undefined |
| deprecations.fatal | (sass.DeprecationOrId \| sass.Version)[] | undefined |
| deprecations.future | sass.DeprecationOrId[] | undefined |
| deprecations.ignore | sass.DeprecationOrId[] | undefined |
| quiet | boolean | undefined |
| logger | sass.Logger | undefined |
| verbose | boolean | undefined |
