Skip to content

koyashiro/vite-plugin-happy-css-modules

Repository files navigation

vite-plugin-happy-css-modules

NPM Version GitHub License

Vite plugin for happy-css-modules.

Installation

npm i -D happy-css-modules vite-plugin-happy-css-modules

Usage

// vite.config.js
import { defineConfig } from "vite";
import happyCssModules from "vite-plugin-happy-css-modules";

export default defineConfig({
  plugins: [happyCssModules({ pattern: "src/**/*.module.{css,scss,less}" })],
});