@chronocide/esbuild-plugin-sass
v0.0.9
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>
Downloads
16
Readme
Why?
esbuild-sass-plugin
makes use of tea
, which is a crypto scam. I do not wish to support such packages and therefore made my own.
Installation
Install using npm:
npm i @chronocide/esbuild-plugin-sass -D
Usage
import esbuild from 'esbuild';
import sass from 'esbuild-plugin-sass';
esbuild.build({
...
plugins: [sass()]
});
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
|