-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
第一次npm run dev 后 访问很慢 #383
Comments
我也是,抓狂,有没有什么解决方法呢 |
我也是,代码肯定有问题,这么基本的问题都没解决 |
项目用的是yarn吧 |
我也是,不懂怎么解决 |
您的邮件我已收到,谢谢。
|
已收到了···
|
English:1, Execute
3, Globally import ElementPlus in
When there is no cache, the Components plugin's automatic imports will generate compiled dependencies for the corresponding components in the node_modules/.vite directory, which can be time-consuming due to the creation of new dependencies. The packaged output of Element Plus already has different types of packages and does not need to be recompiled to produce new artifacts. 中文1, 执行
3, main.ts全局引入ElementPlus 或 自己在文件中手动按需引入ElementPlus。
因为当没有缓存的时候,Components插件自动引入会在node_modules/.vite 目录下产生对应组件编译后的依赖,产生新的依赖特别耗时。element-plus打包后的产物原本就有不同类型的包,不需要再次编译产生新的产物。 我自己的理解。 |
您的邮件我已收到,谢谢。
|
已收到,请放心···
|
好未加载过的页面访问都特别慢,加载过的页面 就流畅多了
The text was updated successfully, but these errors were encountered: