\r\n2. 配置文件如下所示:\u003Cbr /> \n\n### Expected behavior\n\n使用 Github 自带的 https://xihuanxiaorang.github.io/docs/ 访问就没有任何问题,如果是使用自定义域名 https://docs.xiaorang.fun/ 的话,样式就会丢失\n\n### System Info\n\n```Text\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz\r\n Memory: 659.73 MB / 3.92 GB\r\n Binaries:\r\n Node: 20.11.0 - E:\\nodejs\\node.EXE\r\n Yarn: 1.22.21 - E:\\nodejs\\node_global\\yarn.CMD\r\n npm: 10.2.4 - E:\\nodejs\\npm.CMD\r\n pnpm: 8.14.3 - E:\\nodejs\\node_global\\pnpm.CMD\r\n Browsers:\r\n Edge: Chromium (120.0.2210.144)\r\n Internet Explorer: 11.0.19041.3636\r\n npmPackages:\r\n vitepress: 1.0.0-rc.40 => 1.0.0-rc.40\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2918],{"name":2919,"color":2920},"question","5D5FAE",3513,"部署到Github Pages之后,如果使用自定义域名的话样式会丢失","2024-02-07T00:04:15Z","https://github.com/vuejs/vitepress/issues/3513",0.6242512,{"description":2927,"labels":2928,"number":2930,"owner":2860,"repository":2861,"state":2862,"title":2931,"updated_at":2932,"url":2933,"score":2934},"### Describe the bug\n\n标题: 开发服务器模式下 Chrome 浏览器视口宽度计算错误\r\n\r\n## 问题描述\r\n在使用 VitePress 开发模式(`vitepress dev`)时,浏览器视口宽度被错误计算。相同的项目在预览/服务模式(`vitepress serve`)下却能正常工作。\r\n\r\n\r\n\r\n\r\n\r\n\n\n### Reproduction\n\n### 复现步骤\r\n1. 创建一个新的 VitePress 项目\r\n2. 运行 `vitepress dev`\r\n3. 打开 Chrome 开发者工具\r\n4. 在控制台检查 `window.innerWidth`\r\n5. 在不同的浏览器标签页之间切换\n\n### Expected behavior\n\n### 预期行为\r\n- 视口宽度应该与实际浏览器窗口宽度相匹配\r\n- `window.innerWidth` 应返回正确的浏览器窗口宽度(例如:在 1440px 宽的窗口中应返回 1440px)\r\n### 实际行为\r\n- 视口宽度明显小于实际窗口(约为 341px)\r\n- 即使在 Chrome 窗口大小为 1024x768 或更大时也会出现此问题\r\n- 同样的页面在不同的浏览器标签页中显示正确的宽度(1440px)\r\n- 使用 `vitepress serve` 运行时不存在此问题\r\n\n\n### System Info\n\n```Text\n### 环境信息\r\n- VitePress 版本:[1.1.4]\r\n- Chrome 版本:[131.0.6778.86(正式版本)]\r\n- 操作系统:[win10]\n```\n\n\n### Additional context\n\n### 补充说明\r\n- 此问题仅在开发模式下出现\r\n- 此问题影响整个布局,因为所有元素都使用了错误的宽度进行渲染\r\n- 在浏览器标签页之间切换时,相同窗口大小会显示不同的 `window.innerWidth` 值\r\n- 使用Edge、fifefox测试的时候是正常的,下面有对比图\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2929],{"name":2857,"color":2858},4406,"开发服务器模式下 Chrome 浏览器视口宽度计算错误","2025-01-02T04:43:06Z","https://github.com/vuejs/vitepress/issues/4406",0.62891954,{"description":2936,"labels":2937,"number":2938,"owner":2860,"repository":2861,"state":2862,"title":2939,"updated_at":2940,"url":2941,"score":2942},"### Describe the bug\r\n\r\n不支持行内这种**`XXX`**高亮加加粗\r\n\r\n### Reproduction\r\n\r\n不支持:aaa**`XXX`**bbb\r\n支持:aaa **`XXX`** bbb (**和其他文本之间需要加空格)\r\n\r\n### Expected behavior\r\n\r\nnull\r\n\r\n### System Info\r\n\r\n```Text\r\nnull\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.dev).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[],3762,"不支持行内这种**`XXX`**高亮加加粗","2024-04-28T12:25:05Z","https://github.com/vuejs/vitepress/issues/3762",0.6299391,{"description":2944,"labels":2945,"number":2947,"owner":2860,"repository":2861,"state":2862,"title":2948,"updated_at":2949,"url":2950,"score":2951},"### Describe the bug\n\n\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vite-pzpqo8?file=docs%2F.vitepress%2Ftheme%2Fx.ts\r\n\r\n在 `theme/x.ts` 中引入了 `echarts` ,开发时是可以的,页面正常显示。构建时报错。\r\n\r\n\r\n\r\n**如果是一个纯 vite 项目,构建不错误**\n\n### Expected behavior\n\n正常编译不出错\n\n### System Info\n\n```sh\nSystem:\r\n OS: macOS 13.4\r\n CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz\r\n Memory: 48.46 MB / 32.00 GB\r\n Shell: 3.2.57 - /bin/bash\r\n Binaries:\r\n Node: 16.18.1 - ~/Library/Caches/fnm_multishells/19014_1691646234602/bin/node\r\n Yarn: 1.22.19 - ~/Library/pnpm/yarn\r\n npm: 8.19.2 - ~/Library/Caches/fnm_multishells/19014_1691646234602/bin/npm\r\n pnpm: 8.6.8 - ~/Library/pnpm/pnpm\r\n npmPackages:\r\n vitepress: 1.0.0-rc.4 => 1.0.0-rc.4\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2946],{"name":2857,"color":2858},2769,"引入 echarts 编译时报错","2023-08-18T00:04:16Z","https://github.com/vuejs/vitepress/issues/2769",0.6305294,["Reactive",2953],{},["Set"],["ShallowReactive",2956],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fvNWaY2DRwpFXXv8g5lVjduMjsnAHcWDgdfU_cyEGU5I":-1},"/vuejs/vitepress/4200"]