chore: make Vite startup reliable

This commit is contained in:
kx_guo 2026-10-26 16:41:29 +08:00
parent 1582ee8b94
commit f94f041ac9

View File

@ -6,9 +6,9 @@
"description": "蝶雅产品AI中心", "description": "蝶雅产品AI中心",
"engines": { "node": ">=18" }, "engines": { "node": ">=18" },
"scripts": { "scripts": {
"dev": "vite --host 127.0.0.1", "dev": "vite --host 127.0.0.1 --configLoader runner",
"start": "vite preview --host 127.0.0.1", "start": "vite preview --host 127.0.0.1",
"build": "vite build --outDir dist", "build": "vite build --configLoader runner --outDir dist",
"test": "node --test tests/*.test.mjs" "test": "node --test tests/*.test.mjs"
}, },
"devDependencies": { "devDependencies": {