Browse Source

修改配置文件

master
zhaoruhui 3 months ago
parent
commit
891353ce0b
  1. 10
      vite.config.js

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

Loading…
Cancel
Save