[HACK] Wait for webpack to complete before starting
Very hacky
This commit is contained in:
parent
5769526636
commit
45a392afd0
1 changed files with 7 additions and 2 deletions
|
|
@ -1,8 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
make --no-print-directory watch-frontend &
|
make --no-print-directory watch-frontend | tee >(
|
||||||
make --no-print-directory watch-backend &
|
awk -v pattern="webpack" '
|
||||||
|
$0 ~ pattern {
|
||||||
|
system("make --no-print-directory watch-backend &")
|
||||||
|
}
|
||||||
|
'
|
||||||
|
) &
|
||||||
|
|
||||||
trap 'kill $(jobs -p)' EXIT
|
trap 'kill $(jobs -p)' EXIT
|
||||||
wait
|
wait
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue