-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
78 lines (77 loc) · 1.92 KB
/
vite.config.ts
File metadata and controls
78 lines (77 loc) · 1.92 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { VitePWA } from "vite-plugin-pwa";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react(),
VitePWA({
registerType: "autoUpdate",
includeAssets: [
"icon-192-192.jpg",
"icon-512-512.jpg",
"icon-512x512.png",
"ss-wide.png",
"ss-narrow.png",
],
manifest: {
name: "Thinkspace",
short_name: "Thinkspace",
description: "A minimal, calm journaling space for your thoughts",
theme_color: "#F7F3E9",
background_color: "#F7F3E9",
display: "standalone",
scope: "/",
start_url: "/",
orientation: "portrait-primary",
icons: [
{
src: "/icon-192-192.jpg",
sizes: "192x192",
type: "image/jpeg",
purpose: "any",
},
{
src: "/icon-192-192.jpg",
sizes: "192x192",
type: "image/jpeg",
purpose: "maskable",
},
{
src: "/icon-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "any",
},
{
src: "/icon-512-512.jpg",
sizes: "512x512",
type: "image/jpeg",
purpose: "maskable",
},
],
categories: ["productivity", "lifestyle"],
screenshots: [
{
src: "ss-wide.png",
sizes: "1280x720",
type: "image/png",
form_factor: "wide",
},
{
src: "ss-narrow.png",
sizes: "720x1280",
type: "image/png",
form_factor: "narrow",
},
],
},
workbox: {
globPatterns: ["**/*.{js,css,html,ico,png,svg}"],
},
}),
],
optimizeDeps: {
exclude: ["lucide-react"],
},
});