bin/serve.sh (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/env bash kill_vite() { trap SIGINT echo "cleaning up..." pkill vite exit } trap "kill_vite" INT vite serve & find pages/ static/ templates/ | entr vite build trap SIGINT