Simplify frontend assests and build steps

We just write the files directly in the public dir
Then change the npm scripts to lint and compress them directly
This commit is contained in:
Jonny Barnes 2023-12-21 17:57:48 +00:00
parent 1671323012
commit ec17f65107
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8
38 changed files with 333 additions and 11358 deletions

16
scripts/compress.sh Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env zsh
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