Closed lewton closed 2 months ago
The default theme is not compatible with MPA mode. MPA mode might be a misnomer, it's actually zero js mode. Only static html and css will work. You'll need to manually write your theme and import js via head config to make it interactive.
Describe the bug
页面只要涉及 js 交互的地方全部失效,比如主题色切换按钮切换不了,媒体查询后折叠按钮打不开等
Reproduction
vitepress build docs --mpa
然后再:vitepress preview docs
Expected behavior
mpa 多页面打包后应该保留默认主题交互相关的js逻辑
System Info
Additional context
No response
Validations