mirror of
https://github.com/revoltchat/revite.git
synced 2025-04-21 15:57:38 -05:00
Use custom service worker.
This commit is contained in:
parent
c52f1f5bca
commit
d74bc1d8e8
5 changed files with 24 additions and 11 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue