增加 optimize 文件列表,避免 reload

This commit is contained in:
YunaiV 2023-03-07 19:57:46 +08:00
parent 5df7a8c951
commit 281bddcd40

View File

@ -25,6 +25,8 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
root: root, root: root,
// 服务端渲染 // 服务端渲染
server: { server: {
// 是否开启 https
https: false,
// 端口号 // 端口号
port: env.VITE_PORT, port: env.VITE_PORT,
host: "0.0.0.0", host: "0.0.0.0",