diff --git a/.gitignore b/.gitignore index d46727f..24da91b 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ node_modules/ /api/apis.json /api/pages.json /api_hash +!.minexclude diff --git a/api/usage.json b/api/usage.json index fb05610..eaf9a24 100644 --- a/api/usage.json +++ b/api/usage.json @@ -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 + } } } diff --git a/page/canary/.minexclude b/page/canary/.minexclude new file mode 100644 index 0000000..e69de29 diff --git a/scripts/minhtml.sh b/scripts/minhtml.sh index 2a9976e..5648698 100755 --- a/scripts/minhtml.sh +++ b/scripts/minhtml.sh @@ -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 {} \; \