refactor(vite): 替换index.html为vocd.html并更新vite配置
- 删除旧的index.html文件 - 新增vocd.html作为新的入口文件 - 更新vite.config.ts配置,设置publicDir为false并指定新的入口文件
This commit is contained in:
1 parent
1c14e28469
commit
989ae39cd7
2 files changed
+8
No files matched your search
@@ -39,6 +39,14 @@ export default defineConfig(({ mode }) => {
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
base: `/${name}/`,
|
base: `/${name}/`,
|
||||||
|
publicDir: false,
|
||||||
|
build: {
|
||||||
|
rollupOptions: {
|
||||||
|
input: {
|
||||||
|
main: path.resolve(__dirname, 'vocd.html')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
server: {
|
server: {
|
||||||
host: '0.0.0.0'
|
host: '0.0.0.0'
|
||||||
}
|
}
|
||||||
|
|||||||
File renamed without changes.
Reference in new issue
Block a user