-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathvite.config.ts
42 lines (40 loc) · 1.02 KB
/
vite.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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,
],
define: {
__VERSION__: JSON.stringify(process.env.npm_package_version),
},
})