remove redundant resize before ICO generation, use 32 as default

This commit is contained in:
madrilene 2025-03-28 13:14:48 +01:00
parent 5913b5f733
commit 0b277fd5f2
2 changed files with 3 additions and 3 deletions

View file

@ -31,8 +31,8 @@ async function createFavicons() {
.toFile(`${outputDir}/maskable-icon.png`);
// ICO icon
const iconSharp = sharp(svgBuffer).resize(16, 16);
await sharpsToIco([iconSharp], `${outputDir}/favicon.ico`, {sizes: [16]});
const iconSharp = sharp(svgBuffer);
await sharpsToIco([iconSharp], `${outputDir}/favicon.ico`, {sizes: [32]});
console.log('All favicons generated.');
}

View file

@ -18,4 +18,4 @@ In this case define the SVG icon on which all formats are based on in `meta.js`:
export const pathToSvgLogo = 'src/assets/svg/misc/logo.svg'; // used for favicon generation
```
Regardless of whether you generate the icons automatically or create them manually, it is best to keep the names so as not to break any reference to them.
Regardless of whether you generate the icons automatically or create them manually, it is best to keep the names so as not to break any reference to them. You can also use raster images instead of SVG.