Add utility for minifying assets

This commit is contained in:
Lars Mueller 2022-11-16 09:41:23 +01:00
parent 98e782d8e1
commit 77a558af1d
2 changed files with 4 additions and 0 deletions

View File

@ -1,2 +1,3 @@
#!/usr/bin/bash
stylua --check mods stylua --check mods
for f in mods/*; do if [ -f "$f/.luacheckrc" ]; then luacheck "$f" --config "$f/.luacheckrc"; fi done for f in mods/*; do if [ -f "$f/.luacheckrc" ]; then luacheck "$f" --config "$f/.luacheckrc"; fi done

3
utils/minify_assets.sh Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/bash
shopt -s globstar # make ** match recursively
optipng -o7 ./**/*.png