]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs(lazy-loading): Change the `vite` document path (#2493)
authorSunpm <35005831+sunpm@users.noreply.github.com>
Mon, 21 Apr 2025 08:35:37 +0000 (16:35 +0800)
committerGitHub <noreply@github.com>
Mon, 21 Apr 2025 08:35:37 +0000 (10:35 +0200)
packages/docs/guide/advanced/lazy-loading.md
packages/docs/zh/guide/advanced/lazy-loading.md
packages/playground/vite.config.ts
packages/router/e2e/vite.config.mjs

index d33099c88d685c209cad54571b4c3cfa931ef547..82d00f624964b7d4bffa4238ecdc4716f3c6b735 100644 (file)
@@ -63,7 +63,7 @@ webpack will group any async module with the same chunk name into the same async
 
 ### With Vite
 
-In Vite you can define the chunks under the [`rollupOptions`](https://vitejs.dev/config/#build-rollupoptions):
+In Vite you can define the chunks under the [`rollupOptions`](https://vite.dev/config/build-options.html#build-rollupoptions):
 
 ```js
 // vite.config.js
index 80e2829d29caf3fbcc8838bdb3b2ecaefe9f1ff9..bc52b100e9cda2244391f37d5d0a44209001fb42 100644 (file)
@@ -63,7 +63,7 @@ webpack 会将任何一个异步模块与相同的块名称组合到相同的异
 
 ### 使用 Vite
 
-在Vite中,你可以在[`rollupOptions`](https://vitejs.dev/config/#build-rollupoptions)下定义分块:
+在Vite中,你可以在[`rollupOptions`](https://cn.vite.dev/config/build-options.html#build-rollupoptions)下定义分块:
 
 ```js
 // vite.config.js
index aac0711a31fd398d12d8bd9eb0ddd9e942d6ac2f..62303df9acaa2db95f08b6e9361de1290d481ee6 100644 (file)
@@ -2,7 +2,7 @@ import { fileURLToPath, URL } from 'node:url'
 import { defineConfig } from 'vite'
 import Vue from '@vitejs/plugin-vue'
 
-// https://vitejs.dev/config/
+// https://vite.dev/config/
 export default defineConfig({
   plugins: [Vue()],
   resolve: {
index e3a6fbba42f8c4fd02d018546adde86276b30810..d704653b4109f0f5d9a16e42bd09ab7e89db6b31 100644 (file)
@@ -20,7 +20,7 @@ fs.readdirSync(__dirname).forEach(dir => {
   }
 })
 
-// https://vitejs.dev/config/
+// https://vite.dev/config/
 /**
  *
  * @param {Record<string, string>} env