Bye bye .png

... well mostly. Some places will still use it like PWA splash screens.
Otherwise browser support for .avif strong enough now to do this
now.
This commit is contained in:
Kalle
2026-03-29 16:48:47 +03:00
parent 4867858cff
commit e27260f88b
2389 changed files with 41 additions and 105 deletions

View File

@@ -60,7 +60,7 @@ for (const [key, badge] of Object.entries(badges)) {
const badgesLocation = path.join("public", "static-assets", "badges");
for (const fileName of Object.keys(badges)) {
for (const ext of ["png", "avif", "gif"]) {
for (const ext of ["avif", "gif"]) {
const filePath = path.join(badgesLocation, `${fileName}.${ext}`);
if (!fs.existsSync(filePath)) {
console.error(