vitepress-for-component icon indicating copy to clipboard operation
vitepress-for-component copied to clipboard

样式没办法按需加载

Open chenyulun opened this issue 2 years ago • 1 comments

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的文件夹,单独对文件进行构建,dumiesm:'babel'配置一样, Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. 类似vant构建esm模块或者dumies Additional context Add any other context or screenshots about the feature request here.

chenyulun avatar Feb 18 '22 07:02 chenyulun

你可以先直接改项目中的打包逻辑,我改也是需要改模板项目 https://github.com/dewfall123/vlib-template.

后续应该可以支持下。

dewfall123 avatar Feb 21 '22 02:02 dewfall123