Skip to content
New issue

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

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

Already on GitHub? # to your account

[Feature request] 打包后的细碎的 js 文件太多了,每次加载的时候,加载几百个js文件,能合并成一个js吗? #1463

Closed
geeeeeeeek opened this issue Jan 7, 2024 · 3 comments · Fixed by #1447

Comments

@geeeeeeeek
Copy link

Clear and concise description of the problem

打包后的细碎的 js 文件太多了,每次加载的时候,加载几百个js文件,能合并成一个js吗? 比如我的个人博客 每次加载的时候,从F12控制台可以看出,需要加载很多js小文件。

so many js files. how can I merge them?

abc

Suggested solution

希望能通过配置,合并js文件

Alternative

No response

Additional context

No response

@Mister-Hope
Copy link
Member

cc @meteorlxy I think I reported before, if usePagesData is never used, then we can merge page component and page data of 1 single page into 1 single chunk.

@meteorlxy
Copy link
Member

You can turn off shouldPreload or shouldPrefetch.

@github-actions github-actions bot added the stale label Jan 23, 2024
Copy link

This issue is marked as stale because it has not had recent activity. Issues marked with stale will be closed if they have no activity within 7 days.

@Mister-Hope Mister-Hope linked a pull request Jan 24, 2024 that will close this issue
@Mister-Hope Mister-Hope removed the stale label Jan 25, 2024
@Mister-Hope Mister-Hope reopened this Jan 26, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants