浏览代码

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

wangwei 3 年之前
父节点
当前提交
920d3b2fe7
共有 1 个文件被更改,包括 1 次插入0 次删除
  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),