update usage, exclude minification of canary

Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
Arija A. 2024-05-16 14:48:46 +03:00
parent e48363e765
commit 779856e5cd
4 changed files with 10 additions and 1 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ node_modules/
/api/apis.json
/api/pages.json
/api_hash
!.minexclude

View file

@ -166,5 +166,13 @@
"files.ari.lt": 259.6,
"blog.ari.lt": 170.9
}
},
"2024-05-16": {
"total": 2148,
"top": {
"ari.lt": 1331.2,
"blog.ari.lt": 349.3,
"files.ari.lt": 228.6
}
}
}

0
page/canary/.minexclude Normal file
View file

View file

@ -6,7 +6,7 @@ main() {
if [ "$CI" ]; then
echo 'Minifying all HTML'
find . -not -ipath "./node_modules/*" -type f -name "*.html" \
find . -not -ipath "./node_modules/*" -type d -exec sh -c 'find {} -maxdepth 0 -name ".minexclude"' \; -prune -o -type f -name "*.html" \
-exec html-minifier --collapse-whitespace -o {}.min {} \; \
-exec rm {} \; \
-exec mv {}.min {} \; \