🔨 Refactor: compress all assets image to improve loading speed

This commit is contained in:
萌萌哒赫萝
2023-03-02 11:41:06 +08:00
parent 8ba46d9272
commit 8911217780
469 changed files with 82 additions and 25 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ export function formatLink (url: string, fileName: string, type: string, format?
export function getFileIconPath (fileName: string) {
const ext = path.extname(fileName).slice(1)
return availableIconList.includes(ext) ? `${ext}.png` : 'unknown.png'
return availableIconList.includes(ext) ? `${ext}.webp` : 'unknown.webp'
}
export function formatFileSize (size: number) {