Refactor generating CSS
This commit is contained in:
parent
a54228b5d0
commit
0241edff5e
|
@ -49,6 +49,7 @@ ${title}"
|
||||||
echo "${filepath}"
|
echo "${filepath}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Build CSS assets, this is meant to be run within the `assets` directory.
|
||||||
function npm:build:css {
|
function npm:build:css {
|
||||||
local args=()
|
local args=()
|
||||||
|
|
||||||
|
@ -58,8 +59,6 @@ function npm:build:css {
|
||||||
args=(--watch)
|
args=(--watch)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd assets || exit
|
|
||||||
|
|
||||||
tailwindcss \
|
tailwindcss \
|
||||||
--config tailwind.config.ts \
|
--config tailwind.config.ts \
|
||||||
--output ../source/build/tailwind.css "${args[@]}"
|
--output ../source/build/tailwind.css "${args[@]}"
|
||||||
|
@ -75,7 +74,7 @@ function publish {
|
||||||
git stash
|
git stash
|
||||||
|
|
||||||
clean
|
clean
|
||||||
npm:build:css
|
(cd assets && npm:build:css)
|
||||||
generate
|
generate
|
||||||
|
|
||||||
rsync --archive --verbose --compress --update --delete \
|
rsync --archive --verbose --compress --update --delete \
|
||||||
|
|
Loading…
Reference in a new issue