[HACK] Wait for webpack to complete before starting

Very hacky
This commit is contained in:
Minecon724 2025-06-03 13:26:18 +02:00
commit c23238aaa3
Signed by: Minecon724
GPG key ID: A02E6E67AB961189

View file

@ -1,8 +1,13 @@
#!/bin/bash
set -euo pipefail
make --no-print-directory watch-frontend &
make --no-print-directory watch-backend &
make --no-print-directory watch-frontend | tee >(
awk -v pattern="webpack" '
$0 ~ pattern {
system("make --no-print-directory watch-backend &")
}
'
) &
trap 'kill $(jobs -p)' EXIT
wait