@patterninc/esbuild-scss-modules-plugin
v1.2.0
Published
esbuild-scss-modules-plugin =======
Downloads
2
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