Skip to content

Commit 626fecf

Browse files
committed
Enable in dev and fix default icon / csp
1 parent 1669b0a commit 626fecf

File tree

3 files changed

+115
-2
lines changed

3 files changed

+115
-2
lines changed

public/favicon.svg

Lines changed: 111 additions & 0 deletions
Loading

vite-pwa.config.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ export default async function getVitePWAPlugin(
5656
},
5757

5858
pwaAssets: {
59-
image: webOcConfig?.icons?.logo ?? './public/images/favicon.ico',
59+
image: webOcConfig?.icons?.logo,
60+
overrideManifestIcons: webOcConfig?.icons.logo !== undefined,
6061
},
6162

6263
workbox: {
@@ -66,7 +67,7 @@ export default async function getVitePWAPlugin(
6667
},
6768

6869
devOptions: {
69-
enabled: false,
70+
enabled: true,
7071
navigateFallback: 'index.html',
7172
suppressWarnings: true,
7273
type: 'module',

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default defineConfig(async ({ mode, command }) => {
2727
headers: {
2828
'content-security-policy': [
2929
`default-src 'none'`,
30+
`manifest-src 'self'`,
3031
`script-src 'self'`,
3132
`font-src 'self'`,
3233
`style-src 'self' 'unsafe-inline'`, // vuetify

0 commit comments

Comments
 (0)