plugin-esbuild-scss-modules
v1.1.2
Published
esbuild-scss-modules-plugin =======
Downloads
4
Readme
esbuild-scss-modules-plugin
Plugin to use scss and css modules with esbuild. Based on indooorsman/esbuild-css-modules-plugin.
Example
import esbuild from "esbuild";
import {ScssModulesPlugin} from "esbuild-scss-modules-plugin";
const result = await esbuild.build({
entryPoints: ['src/index.ts'],
bundle: true,
outfile: 'dist/index.js',
plugins: [
ScssModulesPlugin({
inject: false,
minify: true,
cssCallback: (css) => console.log(css),
})
]
})
Options
See index.ts
License
MIT