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