Vite官方文档:cn.vitejs.dev/
- vite --host 指定主机名称(type: string)
- vite --port 指定端口(type: number)
- vite --https 使用TLS+HTTP/2(type: boolean)
- vite --open 启动时直接打开浏览器(type: boolean | string)
- vite --cors 启用CORS 处理跨域(type: boolean)
- vite --force 强制优化器忽略缓存并重新构建(type: boolean)
- vite --config 使用指定的配置文件(type: string)可以简写:vite --c
- vite --base 公共基础路径(默认为:/)(type: string)
- vite --debug 显示调试日志(type: string | boolean)可以简写:vite --d
- vite --filter 过滤调试日志(type: string)可以简写:vite --f
- vite --mode 设置环境模式(type: string)可以简写:vite --m
- vite --help 显示可用的CLI选项 可以简写:vite --h
- vite --version 查看版本号 可以简写:vite --v