-
Notifications
You must be signed in to change notification settings - Fork 7
/
vite.config.ts
39 lines (37 loc) · 990 Bytes
/
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
import { sveltekit } from '@sveltejs/kit/vite'
import { defineConfig, type PluginOption } from 'vite'
import { SvelteKitPWA } from '@vite-pwa/sveltekit'
export default defineConfig({
plugins: [
sveltekit(),
SvelteKitPWA({
registerType: 'autoUpdate',
strategies: 'generateSW',
devOptions: {
enabled: true,
type: 'module',
navigateFallback: '/',
},
manifest: {
name: 'Tesseract for Lemmy',
short_name: 'Tesseract',
description: 'A Lemmy client designed with rich media in mind.',
theme_color: '#000000',
display: 'standalone',
icons: [
{
src: 'logo_512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'masked any',
},
],
start_url: '/',
},
}),
],
define: {
__VERSION__: JSON.stringify(process.env.npm_package_version),
__CODENAME__: JSON.stringify("Intrepid")
},
})