Skip to content

anjianshi/vite-plugin-react-stylename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vite-plugin-react-stylename

Migrates to https://github.com/anjianshi/react-inline-css-module

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.

About

Support use styleName with vite.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages