vite-plugin-react-stylename

0.0.2 • Public • Published

vite-plugin-react-stylename

Support use styleName prop in React with vite.

With babel-plugin-react-css-modules we can use styleName instead of className to specify class names in style file that enables CSS module.

import './app.module.css'

function App() {
  return <div styleName="app">content</div>
}

But vite does not use Babel by default. This plugin provide the functional to use styleName in vite.

Notice: Only use this plugin in development environment.

Readme

Keywords

Package Sidebar

Install

npm i vite-plugin-react-stylename

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

4.27 kB

Total Files

6

Last publish

Collaborators

  • anjianshi