ignore sass compiling for now

This commit is contained in:
Emile Clark-Boman 2026-01-31 10:33:12 +10:00
parent c0f53e00c1
commit dee511cd02

24
serve
View file

@ -19,17 +19,17 @@ CSS_PATH="$WEBROOT/css"
SASS_PID= SASS_PID=
# ======================= # # ======================= #
function cleanup { # function cleanup {
if [[ -n "$SASS_PID" ]]; then # if [[ -n "$SASS_PID" ]]; then
kill "$SASS_PID" # kill "$SASS_PID"
fi # fi
} # }
# Watch .sass/.scss files and compile on change # Watch .sass/.scss files and compile on change
function watch_scss { # function watch_scss {
# watch format "SCSS_PATH:OUT_PATH" # # watch format "SCSS_PATH:OUT_PATH"
sass --watch "$SCSS_PATH:$CSS_PATH" # sass --watch "$SCSS_PATH:$CSS_PATH"
} # }
function host { function host {
local args=( "$@" ) local args=( "$@" )
@ -47,13 +47,13 @@ function host {
simple-http-server "${args[@]}" "$@" -- "$WEBROOT" simple-http-server "${args[@]}" "$@" -- "$WEBROOT"
} }
trap cleanup EXIT # trap cleanup EXIT
set -ueo pipefail set -ueo pipefail
set -x set -x
# auto compile scss changes # auto compile scss changes
watch_scss & # watch_scss &
SASS_PID=$! # SASS_PID=$!
# host dev server # host dev server
host "${SRV_ARGS[@]}" host "${SRV_ARGS[@]}"