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.
Install using npm:
npm i @chronocide/esbuild-plugin-sass -D
import esbuild from 'esbuild';
import sass from 'esbuild-plugin-sass';
esbuild.build({
...
plugins: [sass()]
});
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 |