vitepress-for-component
vitepress-for-component copied to clipboard
样式没办法按需加载
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 多组件构建场景,
.
├── src
│ ├── button
│ │ ├── demo
│ │ └── button.vue.d.ts
│ └── index.d.ts
├── style.css
├── vfctest.es.js
└── vfctest.umd.js
多个组件的样式全部都被打进入style.css里面了
Describe the solution you'd like
A clear and concise description of what you want to happen.
需要单独构建es
的文件夹,单独对文件进行构建,dumi
的esm:'babel'
配置一样,
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
类似vant
构建esm
模块或者dumi
的es
Additional context
Add any other context or screenshots about the feature request here.
你可以先直接改项目中的打包逻辑,我改也是需要改模板项目 https://github.com/dewfall123/vlib-template.
后续应该可以支持下。