-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
每次刷新加载非常慢 #329
Comments
请求多这个问题是vite机制的问题,刷新慢这个我已经在跟踪了,后面会解决 |
请问这个问题最终解决了吗,我现在把最新代码拿下来,本地启动项目加载时还是感觉挺慢的 有六七秒 |
没解决,你可以把浏览器的devtool里面的disable cache关掉会快很多,另外因为vite的机制,基本上开发时刷新页面的情况很少 |
请问有解决么,不是一般的慢 |
https://github.com/anncwb/vue-vben-admin/blob/e85649bde2378e8118099879392ff024da33e12b/build/vite/plugin/index.ts#L41 |
@anncwb 这个问题貌似还是没能修复,vendor.*.js加载要好几秒 |
最近把老项目从 webpack 迁移到 vite 时又遇到这个问题了,记录了下优化的方法, 虽然没有从实质上解决问题,但是也加速不少,https://carljin.com/vite-resolve-request-files-a-ton.html |
如下图所示, 我的配置在下方, 我不知道这是不是正常情况, 但是对比了vue-cli的项目, 这个还是有点慢呢, vue-cli的项目是都压成了一个chunks, 一次性加载
https://imgur.com/rxkSR85
Describe the bug
A clear and concise description of what the bug is..
System Info
The text was updated successfully, but these errors were encountered: