Add snow fall to the site
Some tweaks to the node dependencies and compression script also done
This commit is contained in:
parent
84383ecd31
commit
70e5b9bec7
5 changed files with 198 additions and 283 deletions
|
@ -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 {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue