From 7d80328da4f9fe3490be7a775622fdff6d03a1a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Mon, 18 Apr 2022 21:34:43 +0800 Subject: [PATCH] =?UTF-8?q?docs(vite.config.ts):=20=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: 5800a8725c2ed68780cbb2da5d8db77788991a5b --- vite.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 3a27aada..0fb3d595 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -34,9 +34,9 @@ export default ({ command, mode }: ConfigEnv): UserConfig => { } }, resolve: { - // Vite 设置别名路径 + // Vite路径别名配置 alias: { - "@": path.resolve("./src"), // @ 代替 src + "@": path.resolve("./src"), // @代替src } } }