Skip to content

Commit f5005b3

Browse files
committed
add png favicon
1 parent 751bc3d commit f5005b3

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<head>
55
<meta charset="UTF-8">
66
<link rel="icon" href="/favicon.ico" sizes="any">
7+
<link rel="icon" href="/favicon.png" sizes="any">
78
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
89
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png">
910
<meta name="viewport" content="width=device-width, initial-scale=1.0">

public/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ pwa-*.png
22
maskable-icon*.png
33
favicon.ico
44
apple-touch-icon-*.png
5+
favicon.png

pwa-assets.config.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@ import { defineConfig, minimal2023Preset as preset } from '@vite-pwa/assets-gene
33
// TODO: run the generator and add the resulting files to the manifest and html
44

55
export default defineConfig({
6-
preset,
6+
preset: {
7+
...preset,
8+
transparent: {
9+
...preset.transparent,
10+
favicons: [
11+
...preset.transparent.favicons!,
12+
[64, "favicon.png"]
13+
]
14+
}
15+
},
716
images: [
817
'public/favicon.svg',
918
],

0 commit comments

Comments
 (0)