forked from pratik227/zap_dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
97 lines (96 loc) · 3.47 KB
/
vite.config.js
File metadata and controls
97 lines (96 loc) · 3.47 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import {VitePWA} from 'vite-plugin-pwa'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['favicon.svg', 'robots.txt'],
workbox: {
maximumFileSizeToCacheInBytes: 3 * 1024 * 1024, // 3 MB limit
globPatterns: ['**/*.{js,css,html,ico,png,svg,json,vue,txt,woff2}'],
skipWaiting: true,
clientsClaim: true
},
manifest: {
name: 'Zap Dashboard',
short_name: 'ZapDash',
description: 'Lightning-powered dashboard for Nostr and more!',
theme_color: '#fb933c',
id: '/',
dir: 'ltr',
categories: ['productivity', 'finance', 'utilities'],
iarc_rating_id: '',
prefer_related_applications: false,
related_applications: [],
scope_extensions: [],
orientation: 'portrait',
launch_handler: {
client_mode: 'auto'
},
icons: [
{
src: 'new_logo3.png',
sizes: '192x192',
type: 'image/png'
},
{
src: 'new_logo3.png',
sizes: '512x512',
type: 'image/png'
}
],
screenshots: [
{
src: 'Onboarding-Pictures/dashboard.png',
sizes: '1280x720',
type: 'image/png',
label: 'Main dashboard view'
},
{
src: 'Onboarding-Pictures/analytics.png',
sizes: '1280x720',
type: 'image/png',
label: 'Analytics dashboard'
},
{
src: 'Onboarding-Pictures/campaigns.png',
sizes: '1280x720',
type: 'image/png',
label: 'Campaigns overview'
},
{
src: 'Onboarding-Pictures/zapfeed.png',
sizes: '1280x720',
type: 'image/png',
label: 'Zap feed view'
},
{
src: 'Onboarding-Pictures/chat.png',
sizes: '1280x720',
type: 'image/png',
label: 'Chat messaging'
}
]
}
})
],
esbuild: {
drop: ['console', 'debugger']
},
build: {
rollupOptions: {
output: {
manualChunks: {
'echarts': ['echarts', 'vue-echarts'],
'nostr-tools': ['nostr-tools'],
'dicebear': ['@dicebear/core', '@dicebear/collection'],
'fullcalendar': ['@fullcalendar/core', '@fullcalendar/vue3', '@fullcalendar/daygrid', '@fullcalendar/timegrid', '@fullcalendar/interaction', '@fullcalendar/list']
}
}
},
chunkSizeWarningLimit: 1000
}
})