重构: 前端Vue3+Tailwind+Vite构建管线+设置组件拆分
This commit is contained in:
@@ -12,6 +12,14 @@ $ErrorActionPreference = "Stop"
|
||||
$project = "u-desktop"
|
||||
$buildDir = "dist"
|
||||
|
||||
# 构建 Web UI
|
||||
Write-Host "=== 构建 Web UI ===" -ForegroundColor Cyan
|
||||
Push-Location web-ui
|
||||
npm ci --prefer-offline
|
||||
npm run build
|
||||
if ($LASTEXITCODE -ne 0) { Write-Host "Web UI 构建失败" -ForegroundColor Red; exit 1 }
|
||||
Pop-Location
|
||||
|
||||
# 清理
|
||||
if (Test-Path $buildDir) { Remove-Item $buildDir -Recurse -Force }
|
||||
New-Item -ItemType Directory -Force -Path $buildDir | Out-Null
|
||||
|
||||
Reference in New Issue
Block a user