refactor(vite): 替换index.html为vocd.html并更新vite配置

- 删除旧的index.html文件
- 新增vocd.html作为新的入口文件
- 更新vite.config.ts配置,设置publicDir为false并指定新的入口文件
This commit is contained in:
hanshiyang 2025-11-19 16:42:23 +08:00
parent 1c14e28469
commit 989ae39cd7
2 changed files with 8 additions and 0 deletions

View File

@ -39,6 +39,14 @@ export default defineConfig(({ mode }) => {
}
return {
base: `/${name}/`,
publicDir: false,
build: {
rollupOptions: {
input: {
main: path.resolve(__dirname, 'vocd.html')
}
}
},
server: {
host: '0.0.0.0'
}