arco-design / arco-design-vue

A Vue.js 3 UI Library based on Arco Design
https://arco.design/vue
MIT License
2.71k stars 533 forks source link

webpack如何按需引入? #1265

Open gowy222 opened 2 years ago

gowy222 commented 2 years ago

Basic Info

What are the similar cases of this feature

如上

What problem does this feature solve?

项目历史和包的原因,暂时无法迁移到vite... 请问怎么在webpack项目中实现按需引用, react插件倒是看到了,没有找到vue的

gowy222 commented 2 years ago

arco-design-vue 一出来就在等官方文档更新怎么在webpack里面按需加载,毕竟组件设计风格和现在的项目完美契合, 颜色都不要调整。。

flsion commented 2 years ago

@gowy222 目前还没有单独的 webpack 按需加载插件,在计划着基于 unplgin 开发一个。如果是模板自动导入,可以看下 https://github.com/antfu/unplugin-vue-components 也支持 webpack。

gowy222 commented 2 years ago

@flsion 目前有办法实现 手动按需 单文件应用 里面加载?