vuepress / core

Vue-Powered Static Site Generator
https://vuepress.vuejs.org
MIT License
2.17k stars 922 forks source link

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

Closed geeeeeeeek closed 5 months ago

geeeeeeeek commented 5 months ago

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 commented 5 months ago

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 commented 5 months ago

You can turn off shouldPreload or shouldPrefetch.

github-actions[bot] commented 5 months ago

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.