diff --git a/run.local b/run.local index 70742a55..a1af0164 100755 --- a/run.local +++ b/run.local @@ -49,6 +49,7 @@ ${title}" echo "${filepath}" } +# Build CSS assets, this is meant to be run within the `assets` directory. function npm:build:css { local args=() @@ -58,8 +59,6 @@ function npm:build:css { args=(--watch) fi - cd assets || exit - tailwindcss \ --config tailwind.config.ts \ --output ../source/build/tailwind.css "${args[@]}" @@ -75,7 +74,7 @@ function publish { git stash clean - npm:build:css + (cd assets && npm:build:css) generate rsync --archive --verbose --compress --update --delete \