From 891353ce0b3abb82c67cd0553b1d04184e69dd49 Mon Sep 17 00:00:00 2001 From: zhaoruhui Date: Thu, 16 Oct 2025 15:22:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/vite.config.js b/vite.config.js index 12c2aa5..99781d0 100644 --- a/vite.config.js +++ b/vite.config.js @@ -24,6 +24,16 @@ export default defineConfig(({ mode, command }) => { build: { // 根据模式设置不同的输出目录 outDir: outDirMap[mode] || 'dist', + // 添加多入口配置 + rollupOptions: { + input: { + main: './index.html', + download: './hcdbqb-download.html', + guide: './hcdbqb-guide.html', + management: './hcdbqb-management.html' + // 如果你还有其他HTML文件,继续在这里添加 + } + } }, // 开发服务器配置 server: {