proper minify (thank you claude for making the code)

This commit is contained in:
KingKDot
2026-04-19 00:41:56 -05:00
parent ab755a690f
commit 04df67f42e
6 changed files with 160 additions and 14 deletions
+5 -5
View File
@@ -74,11 +74,11 @@ echo [8/10] Copying required public web assets...
robocopy "%SERVER_SRC%\public" "%RELEASE_DIR%\public" /E >nul
if errorlevel 8 goto :robocopy_err
echo [9/10] Minifying public JavaScript assets...
for %%F in ("%SERVER_SRC%\public\assets\*.js") do (
call bun build --minify --no-bundle --target=browser --outfile "%RELEASE_DIR%\public\assets\%%~nxF" "%%~fF" >nul
if errorlevel 1 goto :err
)
echo [9/10] Minifying public JS, CSS, and HTML assets...
pushd "%SERVER_SRC%"
call bun run scripts/minify-public.ts --dir "%RELEASE_DIR%\public"
if errorlevel 1 goto :err
popd
echo [10/10] Creating runner scripts...