From 37918011c21a2e66b867bdcf78c963283c964d59 Mon Sep 17 00:00:00 2001 From: lichaojun Date: Tue, 14 Oct 2025 22:26:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=93=E5=8C=85=E6=97=B6=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E6=8C=87=E5=AE=9A=E7=9B=AE=E5=BD=95=E5=88=B0=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E7=BD=AE=EF=BC=88=E4=BE=8B=E5=A6=82=E5=B0=86?= =?UTF-8?q?demoHtml=E5=9C=A8=E6=89=93=E5=8C=85=E5=90=8E=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E5=88=B0dist/demoHtml=EF=BC=89=3D>=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=B9=8B=E5=89=8D=E5=A4=8D=E5=88=B6=E7=9B=AE=E5=BD=95=E5=AF=BC?= =?UTF-8?q?=E8=87=B4markdown=E4=B8=8D=E8=83=BD=E8=A7=A3=E6=9E=90=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=88=E8=B7=AF=E5=BE=84=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 7fb066d..c79b2ec 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -3,6 +3,7 @@ import { include, exclude } from './build/optimize'; import { type UserConfigExport, type ConfigEnv, loadEnv } from 'vite'; import { root, alias, wrapperEnv, pathResolve, __APP_INFO__ } from './build/utils'; import copy from 'rollup-plugin-copy'; +import path from 'path'; export default ({ mode }: ConfigEnv): UserConfigExport => { const { VITE_CDN, VITE_PORT, VITE_COMPRESSION, VITE_PUBLIC_PATH } = wrapperEnv(loadEnv(mode, root)); @@ -41,8 +42,8 @@ export default ({ mode }: ConfigEnv): UserConfigExport => { copy({ targets: [ { - src: '/demoHtml/**/*', - dest: '/dist/demoHtml', + src: 'demoHtml/**/*', + dest: path.join(process.cwd(), 'dist', 'demoHtml'), }, ], overwrite: true,