Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koyashiro/vite-plugin-happy-css-modules
Vite plugin for happy-css-modules
https://github.com/koyashiro/vite-plugin-happy-css-modules
css css-modules happy-css-modules vite
Last synced: about 1 month ago
JSON representation
Vite plugin for happy-css-modules
- Host: GitHub
- URL: https://github.com/koyashiro/vite-plugin-happy-css-modules
- Owner: koyashiro
- License: mit
- Created: 2024-05-24T17:03:01.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-09-30T18:15:22.000Z (about 2 months ago)
- Last Synced: 2024-10-01T03:04:54.800Z (about 2 months ago)
- Topics: css, css-modules, happy-css-modules, vite
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/vite-plugin-happy-css-modules
- Size: 574 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vite-plugin-happy-css-modules
![NPM Version](https://img.shields.io/npm/v/vite-plugin-happy-css-modules)
![GitHub License](https://img.shields.io/github/license/koyashiro/vite-plugin-happy-css-modules)Vite plugin for [happy-css-modules](https://github.com/mizdra/happy-css-modules).
## Installation
```sh
npm i -D happy-css-modules vite-plugin-happy-css-modules
```## Usage
```typescript
// 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}" })],
});
```