1. 忽略 VITE_CJS_IGNORE_WARNING 告警

2. 忽略 @unocss/order 和 @unocss/order-attributify 告警
3. 修复 https 配置项的告警
This commit is contained in:
YunaiV
2024-03-01 01:05:03 +08:00
parent ff0566bb7f
commit 9b0890d195
3 changed files with 5 additions and 6 deletions

View File

@ -25,10 +25,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
root: root,
// 服务端渲染
server: {
// 是否开启 https
https: false,
// 端口号
port: env.VITE_PORT,
port: env.VITE_PORT, // 端口号
host: "0.0.0.0",
open: env.VITE_OPEN === 'true',
// 本地跨域代理. 目前注释的原因暂时没有用途server 端已经支持跨域