Skip to content

patterninc/esbuild-scss-modules-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esbuild-scss-modules-plugin

Plugin to use scss and css modules with esbuild. Based on indooorsman/esbuild-css-modules-plugin.

npm

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 52.3%
  • TypeScript 47.7%