Refactor generating CSS

This commit is contained in:
Oliver Davies 2024-07-31 00:48:47 +01:00
parent a54228b5d0
commit 0241edff5e

View file

@ -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 \