-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
sidebar配置需要优化 #3933
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
Comments
Set |
我也遇到了这个问题,页面较多时建议开启比较好,当我设置了 |
设置metaChunk: true只是把sidebar打包的文件单独抽离到一个JS中去,虽然很简单解决了这个问题但是只能称为优化,因为核心的解决因该是每个目录的sidebar仅影响该目录下生成的文件,而不打包到其他路径的文件中去。这样即便1000个目录100000个sidebar menu,打包后每个目录的文件也很小,实际请求只会涉及当前目录的。 |
Duplicate of #3367 |
Is your feature request related to a problem? Please describe.
当sidebar配置因为文件目录较多时,sidebar会被打包进入所有页面的HTML中,这将导致__VP_HASH_MAP__过大。
Describe the solution you'd like
希望根据目录配置sidebar,打包时,仅引入目录下的sidebar配置文件,避免注入到所有页面的__VP_HASH_MAP__中
Describe alternatives you've considered
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: