0.1.0 • Published 1 year ago

vite-plugin-typed-css-modules v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

vite-plugin-typed-css-modules

Generates typed definitions for css modules using typed-css-modules.

The plugin will set the vite config field css.modules.localsConvention to camelCaseOnly and sets the camelCase option in typed-css-modules.

Using the vite dev server watcher, any time a [name].module.css file is edited a [name].module.css.d.ts file will be rewritten.

Installation

npm install vite-plugin-typed-css-modules

Usage

// vite.config.js

import typedCssModulesPlugin from "vite-plugin-typed-css-modules";

/** @type {import('vite').UserConfig} */
const config = {
  plugins: [typedCssModulesPlugin()],
};

export default config;
0.1.0

1 year ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago