MPA Mode experimental
MPA (Multi-Page Application) mode can be enabled via the command line via
vitepress build --mpa, or via config through the
mpa: true option.
However, due to the absence of SPA navigation, cross-page links will lead to full page reloads. Post-load navigations in MPA mode will not feel as instant as in SPA mode.
<script client> tag:
<script client> is a VitePress-only feature, not a Vue feature. It works in both
.vue files, but only in MPA mode. Client scripts in all theme components will be bundled together, while client script for a specific page will be split for that page only.