Add snow fall to the site
Some checks failed
Laravel Pint / Laravel Pint (pull_request) Has been cancelled
PHP Unit / PHPUnit test suite (pull_request) Has been cancelled

Some tweaks to the node dependencies and compression script also done
This commit is contained in:
Jonny Barnes 2024-11-30 15:58:25 +00:00
parent 84383ecd31
commit 70e5b9bec7
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
5 changed files with 198 additions and 283 deletions

View file

@ -1,16 +1,13 @@
#!/usr/bin/env zsh
if ! type fd &> /dev/null; then
echo "fd not installed"
exit 1
fi
if ! type brotli &> /dev/null; then
echo "brotli not installed"
exit 1
fi
for file in ./public/assets/css/*.css
do
brotli --force --quality=11 --output=$file.br -- $file
done
for file in ./public/assets/js/*.js
do
brotli --force --quality=11 --output=$file.br -- $file
done
fd -e css -e js --search-path ./public/assets --type f -x brotli --force --best --output={}.br {}