27 lines
838 B
Batchfile
27 lines
838 B
Batchfile
@echo off
|
|
setlocal
|
|
echo =========================================
|
|
echo Starting DEVELOPMENT WATCH mode...
|
|
echo =========================================
|
|
echo Press Ctrl+C to stop.
|
|
echo.
|
|
:: Start Tailwind in watch mode in the background
|
|
echo [DEV] Starting Tailwind CSS watcher...
|
|
start "Tailwind Watcher" .\tailwindcss.exe -i .\frontend\input.css -o .\web\static\css\output.css --watch
|
|
|
|
if %errorlevel% neq 0 (
|
|
echo [AIR] ^> !!! Tailwind CSS compilation FAILED. Halting build.
|
|
popd
|
|
exit /b 1
|
|
)
|
|
|
|
:: Start esbuild in watch mode in the foreground
|
|
::.\esbuild.exe .\frontend\js\main.js --bundle --outfile=.\web\static\js\app.js --watch
|
|
echo [DEV] Starting JavaScript watcher with Code Splitting...
|
|
.\esbuild.exe .\frontend\js\main.js ^
|
|
--bundle ^
|
|
--outdir=.\web\static\js ^
|
|
--splitting ^
|
|
--format=esm ^
|
|
--watch
|
|
endlocal |