mirror of
https://git.ari.lt/ari.lt/ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update usage, exclude minification of canary
Signed-off-by: Ari Archer <ari@ari.lt>
This commit is contained in:
parent
e48363e765
commit
779856e5cd
4 changed files with 10 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -4,3 +4,4 @@ node_modules/
|
|||
/api/apis.json
|
||||
/api/pages.json
|
||||
/api_hash
|
||||
!.minexclude
|
||||
|
|
|
@ -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
0
page/canary/.minexclude
Normal 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 {} \; \
|
||||
|
|
Loading…
Add table
Reference in a new issue