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: {