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

开发体验优化 #248

Merged
merged 2 commits into from
Aug 10, 2022
Merged

开发体验优化 #248

merged 2 commits into from
Aug 10, 2022

Conversation

object-kaz
Copy link
Contributor

@object-kaz object-kaz commented Aug 10, 2022

vite在启动时会扫描依赖并进行预构建,但是 unplugin 插件导致 element-plus 在启动时需要加载大量的scss样式文件,引发多次依赖预构建,拖慢启动速度。
image
image

可以看到 依赖预构建和css处理耗费了很多时间。在开发环境取消 element-plus 样式按需加载,可以加快开发环境预加载速度。

@maslow maslow requested a review from LeezQ August 10, 2022 13:42
@maslow maslow merged commit 61bc054 into labring:feat-web Aug 10, 2022
LeezQ pushed a commit to LeezQ/laf that referenced this pull request Sep 19, 2022
* chore: optimizeDeps

* fix: add missing cache control
LeezQ pushed a commit to LeezQ/laf that referenced this pull request Sep 28, 2022
* chore: optimizeDeps

* fix: add missing cache control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants