Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[开发和部署的性能下降严重] 现下大多vite vue应用在window的开发构建表现非常不佳,mac丝滑能强一点, 跟admin基础应用耦合度非常高有关系,应该怎么解决或规避这个问题 #12701

Closed
7 tasks done
cheng990629 opened this issue Apr 2, 2023 · 4 comments

Comments

@cheng990629
Copy link

cheng990629 commented Apr 2, 2023

Describe the bug

github最流行的vite admin,
vben admin.....

现下大多vite vue应用在window的表现不佳, 跟admin基础应用耦合度非常高有关系,应该怎么解决或规避这个问题,
就算自己再重写一套,也避免不了后期量起来导致的耦合度依赖,使开发和部署的性能下降的厉害

Reproduction

https://github.com/cayweb778/testvite.git

Steps to reproduce

No response

System Info

windows 11
macos lastest

Used Package Manager

npm

Logs

No response

Validations

@cheng990629 cheng990629 changed the title 现下大多vite vue应用在window的开发构建表现非常不佳,mac丝滑能强一点, 跟admin基础应用耦合度非常高有关系,应该怎么解决或规避这个问题 [开发和部署的性能下降严重] 现下大多vite vue应用在window的开发构建表现非常不佳,mac丝滑能强一点, 跟admin基础应用耦合度非常高有关系,应该怎么解决或规避这个问题 Apr 2, 2023
@hronro
Copy link
Contributor

hronro commented Apr 3, 2023

「开发和部署的性能」是指什么?

@WangJincheng4869
Copy link

「开发和部署的性能」是指什么?

我猜是首屏加载慢得离谱,比如我的项目,目前只写了一个页面,只是配置了多语言切换 + element plus 的自定义主题,每次加载首屏要接近两分钟。

@feiyayshx
Copy link

feiyayshx commented Apr 7, 2023

首屏加载或者全局刷新页面都很慢,主要原因是首屏浏览器请求模块太多, js/css/vue等资源模块有200个左右,虽然每个模块压缩后体积只有几kb, 但是请求数量很大,造成加载等待时间很长,项目中路由组件都是异步引入,正在想办法如何才能减少资源请求数量,大家如有好的方案希望分享!

@bluwy
Copy link
Member

bluwy commented Apr 7, 2023

Duplicate of #4665

@bluwy bluwy marked this as a duplicate of #4665 Apr 7, 2023
@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Apr 7, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants