[HACK] Wait for webpack to complete before starting
Very hacky
This commit is contained in:
parent
2e310e79bf
commit
c23238aaa3
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue