-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvite.config.ts
39 lines (38 loc) · 1.24 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
import { defineConfig } from "vite";
import { svelte } from "@sveltejs/vite-plugin-svelte";
import { VitePWA } from "vite-plugin-pwa";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
svelte(),
VitePWA({
registerType: "autoUpdate",
injectRegister: "script",
manifest: {
name: "KIT Vorlesungs Roulette",
short_name: "KIT Vorlesungs Roulette",
start_url: "/",
display: "standalone",
theme_color: "#333333",
background_color: "#222222",
icons: [
{
src: "pwa-icons/manifest-icon-192.png",
sizes: "192x192",
type: "image/png",
purpose: "maskable any",
},
{
src: "pwa-icons/manifest-icon-512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable any",
},
],
},
}),
],
define: {
APP_VERSION: JSON.stringify(process.env.npm_package_version),
},
});