all repos — site @ e521d2780f5616382538ccea62c993fc190c4bdf

source for my site, found at icyphox.sh

bin/serve: specify vite command
Anirudh Oppiliappan x@icyphox.sh
Mon, 27 May 2024 21:58:13 +0300
commit

e521d2780f5616382538ccea62c993fc190c4bdf

parent

8ba2dbaa2bc2cfca522cee1b2643c5b511760ae3

1 files changed, 9 insertions(+), 2 deletions(-)

jump to
M bin/serve.shbin/serve.sh

@@ -1,5 +1,12 @@

#!/usr/bin/env bash +vite="$1" +if [ -z "$vite" ]; then + vite="vite" +fi + +echo "using vite command: $vite" + kill_vite() { trap SIGINT echo "cleaning up..."

@@ -8,7 +15,7 @@ exit

} trap "kill_vite" INT -vite serve & -find pages/ static/ templates/ | entr vite build +"$vite" serve & +find pages/ static/ templates/ | entr "$vite" build trap SIGINT