Skip to content

Commit 4a0f91c

Browse files
authored
Merge pull request #1297 from vitejs/dev
sync into main
2 parents cd3e71f + 28b1fa3 commit 4a0f91c

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

.vitepress/config.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ const additionalTitle = ((): string => {
3838
})()
3939
const versionLinks = ((): DefaultTheme.NavItemWithLink[] => {
4040
const oldVersions: DefaultTheme.NavItemWithLink[] = [
41+
{
42+
text: 'Vite 6 Docs',
43+
link: 'https://v6.vite.dev',
44+
},
4145
{
4246
text: 'Vite 5 Docs',
4347
link: 'https://v5.vite.dev',
@@ -61,7 +65,7 @@ const versionLinks = ((): DefaultTheme.NavItemWithLink[] => {
6165
case 'local':
6266
return [
6367
{
64-
text: 'Vite 6 Docs (release)',
68+
text: 'Vite 7 Docs (release)',
6569
link: 'https://vite.dev',
6670
},
6771
...oldVersions,
@@ -253,6 +257,10 @@ export default defineConfig({
253257
{
254258
text: '历史版本',
255259
items: [
260+
{
261+
text: 'Vite v6 文档(英文)',
262+
link: 'https://v6.vite.dev'
263+
},
256264
{
257265
text: 'Vite v5 文档(英文)',
258266
link: 'https://v5.vite.dev'

config/server-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export default defineConfig({
254254

255255
文件系统监视器选项传递给 [chokidar](https://github.com/paulmillr/chokidar/tree/3.6.0#api)
256256

257-
Vite 服务器的文件监听器默认会监听 `root` 目录,同时会跳过 `.git/``node_modules/`以及 Vite 的 `cacheDir``build.outDir` 这些目录。当监听到文件更新时,Vite 会应用 HMR 并且只在需要时更新页面。
257+
Vite 服务器的文件监听器默认会监听 `root` 目录,同时会跳过 `.git/``node_modules/``test-results/`, 以及 Vite 的 `cacheDir``build.outDir` 这些目录。当监听到文件更新时,Vite 会应用 HMR 并且只在需要时更新页面。
258258

259259
如果设置为 `null`,则不会监视任何文件。`server.watcher` 将提供兼容的事件发射器,但调用 `add``unwatch` 将不起作用。
260260

0 commit comments

Comments
 (0)