mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-24 20:16:41 -05:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user