Explorar o código

添加编译完成自动打开浏览器

wangwei %!s(int64=3) %!d(string=hai) anos
pai
achega
920d3b2fe7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      vite.config.ts

+ 1 - 0
vite.config.ts

@@ -59,6 +59,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
     server: {
       // Listening on all local IPs
       host: true,
+      open: true,
       port: VITE_PORT,
       // Load proxy configuration from .env
       proxy: createProxy(VITE_PROXY),