BililiveRecorder/webui/build.ps1
shugen002 4472ad5d53 fix: wrong BASE_URL (+1 squashed commits)
Squashed commits:

[485c2bd] fix: wrong BASE_URL
2022-08-29 12:14:18 +08:00

9 lines
308 B
PowerShell

Set-PSDebug -Trace 1
Push-Location "$PSScriptRoot/source"
$env:BASE_URL = "./"
$env:VITE_EMBEDDED_BUILD = "true"
(npm ci) -and (npx vite build)
Remove-Item -Recurse -ErrorAction SilentlyContinue ../../BililiveRecorder.Web/embeded/ui
Copy-Item -Recurse dist ../../BililiveRecorder.Web/embeded/ui
Pop-Location