# @luban-ui/vite-plugun-css-modules-dts

> Generate .d.ts for css modules file

Latest version **1.0.2** (published 2024-12-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @luban-ui/vite-plugun-css-modules-dts
pnpm add @luban-ui/vite-plugun-css-modules-dts
yarn add @luban-ui/vite-plugun-css-modules-dts
bun add @luban-ui/vite-plugun-css-modules-dts
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2024-12-04 |
| First published | 2023-12-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 11.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Season Chen season.chen.i@foxmail.com> |
| Maintainers | season.chen |
| Keywords | css modules, typescript |

## Links

- npm: https://www.npmjs.com/package/@luban-ui/vite-plugun-css-modules-dts
- Homepage: https://github.com/luban-dev/vite-plugun-css-modules-dts
- npm.io page: https://npm.io/package/@luban-ui/vite-plugun-css-modules-dts

## Dependencies (3)

- [glob](https://npm.io/package/glob.md) ^10.3.10
- [minimatch](https://npm.io/package/minimatch.md) ^9.0.3
- [node-watch](https://npm.io/package/node-watch.md) ^0.7.4

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2024-12-04
- 1.0.1 — 2024-12-04
- 1.0.0 — 2023-12-27

## README

# Generate .d.ts for css modules file

## Install

```sh
npm i -D vite @luban-ui/vite-plugun-css-modules-dts
```

## Create config file

```ts
import { defineConfig } from 'vite';
import cssModulesDts from '@luban-ui/vite-plugun-css-modules-dts';

// vite.config.ts
export default defineConfig(() => {
  const root = __dirname;

  return {
    root,
    server: {
      host: '0.0.0.0',
      port: 5174
    },
    resolve: {
      alias: {
        '@': root
      }
    },
    plugins: [
      cssModulesDts({
        files: [
          '**/*.module.scss'
        ],
        namedExports: true,
        watch: true
      })
    ]
    // ...others
  };
});

---
_Source: https://npm.io/package/@luban-ui/vite-plugun-css-modules-dts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
