From 97578ae5da2760ef3ab2bfbd41655e373f4d7eb9 Mon Sep 17 00:00:00 2001 From: pany <939630029@qq.com> Date: Thu, 21 Apr 2022 17:34:27 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E9=85=8D=E7=BD=AE=20base?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index f6f8fe8..d3202ee 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,6 +9,8 @@ import { createSvgIconsPlugin } from 'vite-plugin-svg-icons' /** 配置项文档:https://vitejs.dev/config */ export default (env: ConfigEnv): UserConfigExport => { return { + /** build 打包时根据实际情况修改 base */ + base: '/', resolve: { alias: { /** @ 符号指向 src 目录 */