Use custom service worker.

This commit is contained in:
Paul 2021-06-22 14:22:35 +01:00
parent c52f1f5bca
commit d74bc1d8e8
5 changed files with 24 additions and 11 deletions

View file

@ -23,9 +23,12 @@ export default defineConfig({
plugins: [
preact(),
VitePWA({
srcDir: 'src',
filename: 'sw.ts',
strategies: 'injectManifest',
manifest: {
name: "Revolt",
short_name: "Revolt",
name: "REVOLT",
short_name: "REVOLT",
description: "User-first, privacy-focused chat platform.",
categories: ["messaging"],
start_url: "/",
@ -44,8 +47,7 @@ export default defineConfig({
"sizes": "512x512"
}
]
},
workbox: { }
}
}),
replace({
__GIT_REVISION__: getGitRevision(),