mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-31 04:58:09 +00:00
fix(website): copy apple-touch-icon files to www root for iOS/Safari
This commit is contained in:
@@ -241,6 +241,14 @@ async function compile() {
|
|||||||
console.log(' Assets copied.');
|
console.log(' Assets copied.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Copy apple-touch-icon to www root (browsers/iOS request these at /)
|
||||||
|
const appleTouchSrc = path.join(destAssets, 'apple-touch-icon.png');
|
||||||
|
if (fs.existsSync(appleTouchSrc)) {
|
||||||
|
fs.copyFileSync(appleTouchSrc, path.join(wwwDir, 'apple-touch-icon.png'));
|
||||||
|
fs.copyFileSync(appleTouchSrc, path.join(wwwDir, 'apple-touch-icon-precomposed.png'));
|
||||||
|
console.log(' ✓ Apple touch icons copied to www root.');
|
||||||
|
}
|
||||||
|
|
||||||
// ── 7. Convert all WebP to AVIF (quality 70) ──
|
// ── 7. Convert all WebP to AVIF (quality 70) ──
|
||||||
console.log('Converting WebP → AVIF...');
|
console.log('Converting WebP → AVIF...');
|
||||||
let avifCount = 0;
|
let avifCount = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user