Refactor generating CSS
This commit is contained in:
parent
a54228b5d0
commit
0241edff5e
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue