npmjs.org : vite-plugin-oneof-css-module
无论是微服务还是大型的项目,样式多了就容易被覆盖,目前css-in-js,scoped等都可以来实现,当然我比较喜欢使用CSS-Module,主要可以自由的定制class名称,也可以很好的去做区分,Vite其实也提供了CssModule,也可以根据不同的文件来自定义名称,但抛弃不掉的是.module.scss, 下面就说一下类似webpack中oneOf功能的Vite CssModule 插件,可以针对不同的正则来使用不同的CSS Module规则。
Registry
-
Source
- JSON
purl: pkg:npm/vite-plugin-oneof-css-module
Keywords:
vite
, css module
, oneof
License: ISC
Latest release: over 1 year ago
First release: almost 2 years ago
Downloads: 6 last month
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago
@everything-registry/sub-chunk-3061 0.1.0 removed
npm install @everything-registry/sub-chunk-30611 version - Latest release: almost 2 years ago - 206 stars on GitHub - 2 maintainers
Check this option to include packages that no longer depend on this package in their latest version but previously did.