File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ const additionalTitle = ((): string => {
3838} ) ( )
3939const 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'
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments