dewfall123 / vitepress-for-component

📖 针对组件开发的VitePress。 重构版本https://github.com/dewfall123/ruabick
https://dewfall123.github.io/vitepress-for-component/
MIT License
194 stars 38 forks source link

样式没办法按需加载 #57

Open chenyulun opened 2 years ago

chenyulun commented 2 years ago

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.

dewfall123 commented 2 years ago

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

后续应该可以支持下。