refactor(vite): 替换index.html为vocd.html并更新vite配置
- 删除旧的index.html文件 - 新增vocd.html作为新的入口文件 - 更新vite.config.ts配置,设置publicDir为false并指定新的入口文件
This commit is contained in:
parent
1c14e28469
commit
989ae39cd7
|
|
@ -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'
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user