How to reduce the bundle size of Web Components in Vue 怎么设置能减少 Web Components 的打包体积 #12500
Unanswered
chenyongtong
asked this question in
Help/Questions
Replies: 1 comment 1 reply
-
这个体积是你的打包文件体积,文档说的16kb是Vue 3 的核心库 (Vue runtime) 在生产环境下打包时的最小化文件大小,概念不一样。减小的我倒是也不太清楚等等大佬 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
在使用 Vue3 编写 WebComponents 组件时,发现打包体积有:147.92 kB │ gzip: 46.10 kB,而不是文档中说的 ~16kb, 我该怎么减小它?
When writing Web Components using Vue 3, I found the bundle size to be 147.92 kB │ gzip: 46.10 kB, rather than the ~16kb mentioned in the documentation. How can I reduce it?
"vue": "^3.5.13",
"vite": "^6.0.1",
Beta Was this translation helpful? Give feedback.
All reactions