From 0241edff5e53428a9bb90134bcbf492a9e50e96c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 31 Jul 2024 00:48:47 +0100 Subject: [PATCH] Refactor generating CSS --- run.local | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/run.local b/run.local index 70742a55f..a1af01640 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 \