Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

ictrobot/esbuild-scss-modules-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

esbuild-scss-modules-plugin

No longer maintained - see https://www.npmjs.com/package/esbuild-sass-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

Packages

No packages published

Contributors 3

  •  
  •  
  •