refactor: 简化启动脚本并移除硬编码端口配置

移除start.bat中复杂的端口回退逻辑,改为直接调用npm脚本
同时从package.json中移除硬编码的端口配置
This commit is contained in:
祀梦
2025-12-15 16:40:32 +08:00
parent c0ff3b29de
commit d9a089be3f
2 changed files with 3 additions and 60 deletions

View File

@@ -8,8 +8,8 @@
"node": "^20.6.0 || >=22.0.0"
},
"scripts": {
"docs:dev": "vuepress dev docs --port 4567",
"docs:dev-clean": "vuepress dev docs --clean-cache --clean-temp --port 4567",
"docs:dev": "vuepress dev docs",
"docs:dev-clean": "vuepress dev docs --clean-cache --clean-temp",
"docs:build": "vuepress build docs --clean-cache --clean-temp",
"docs:preview": "http-server docs/.vuepress/dist",
"vp-update": "npx vp-update"