feat: nuke vite-pwa because it sucks and use my own service worker
This commit is contained in:
1 parent
19fa06b5bd
commit
25a3b10937
9 files changed
+116
-78
No files matched your search
+1
-32
@@ -1,40 +1,9 @@
|
||||
import { sveltekit } from '@sveltejs/kit/vite'
|
||||
import { defineConfig, type PluginOption } from 'vite'
|
||||
import { SvelteKitPWA } from '@vite-pwa/sveltekit'
|
||||
import { visualizer } from 'rollup-plugin-visualizer'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
sveltekit(),
|
||||
SvelteKitPWA({
|
||||
registerType: 'autoUpdate',
|
||||
strategies: 'generateSW',
|
||||
devOptions: {
|
||||
enabled: true,
|
||||
type: 'module',
|
||||
navigateFallback: '/',
|
||||
},
|
||||
manifest: {
|
||||
name: 'Photon for Lemmy',
|
||||
short_name: 'Photon',
|
||||
description: 'A lemmy client with a sleek design',
|
||||
theme_color: '#000000',
|
||||
display: 'standalone',
|
||||
icons: [
|
||||
{
|
||||
src: 'logo_512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
purpose: 'masked any',
|
||||
},
|
||||
],
|
||||
start_url: '/',
|
||||
},
|
||||
}),
|
||||
visualizer({
|
||||
template: 'network',
|
||||
}) as PluginOption,
|
||||
],
|
||||
plugins: [sveltekit(), visualizer({}) as PluginOption],
|
||||
|
||||
define: {
|
||||
__VERSION__: JSON.stringify(process.env.npm_package_version),
|
||||
|
||||
Reference in new issue
Block a user