Comments (3)
Set metaChunk: true
in your .vitepress config. It will extract that to separate file and won't exponentially increase your size.
from vitepress.
我也遇到了这个问题,页面较多时建议开启比较好,当我设置了 metaChunk: true
,这让我的打包文件直接从500M降低至200M。这个配置比较有用,但是文档可能不够突出,我也是找了一段时间才找到。
from vitepress.
设置metaChunk: true只是把sidebar打包的文件单独抽离到一个JS中去,虽然很简单解决了这个问题但是只能称为优化,因为核心的解决因该是每个目录的sidebar仅影响该目录下生成的文件,而不打包到其他路径的文件中去。这样即便1000个目录100000个sidebar menu,打包后每个目录的文件也很小,实际请求只会涉及当前目录的。
from vitepress.
Related Issues (20)
- Traslation issue HOT 4
- Add `important` to custom containers
- The style is not applied to the list inside the quote
- How to add a custom element next to a specific existing navbar element? HOT 1
- Last Updated Time in sitemap.xml HOT 1
- Markdown-it plugin type issue HOT 11
- Watch files in Path Loader
- (build): Number header attribute render error HOT 4
- Whether to support customizing the copy code text in the code box HOT 5
- Feature Request: Auto-generate Page Descriptions in VitePress for SEO Optimization HOT 3
- Hide the appearance switcher, but still honor the user’s preferred color scheme HOT 2
- Not support downloading local markdown file
- Why not support markdown region snippets? HOT 3
- 使用 AntDesignVue Pagination 组件中,发现单击某个页数切换,会导致页面会回滚到 Top HOT 3
- icon加载不出来时,用上一次离线缓存替换 HOT 1
- [New feature] export `VPHomeContent` to provide content-adaptive layout
- Optimization for wordless languages HOT 8
- [Question] How to write double curly brackets `{{}}` with nothing in? HOT 2
- mathjax is out of line HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vitepress.