ignore sass compiling for now
This commit is contained in:
parent
c0f53e00c1
commit
dee511cd02
1 changed files with 12 additions and 12 deletions
24
serve
24
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[@]}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue