-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
49 lines (48 loc) · 1.49 KB
/
vite.config.js
File metadata and controls
49 lines (48 loc) · 1.49 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
import { defineConfig } from 'vite';
import { VitePWA } from 'vite-plugin-pwa';
import path from 'path';
export default defineConfig({
base: '/pulse-bpm-app/',
root: 'src',
build: {
outDir: '../dist',
emptyOutDir: true,
},
resolve: {
alias: {
'realtime-bpm-analyzer': path.resolve(__dirname, 'node_modules/realtime-bpm-analyzer/dist/index.esm.js')
}
},
plugins: [
VitePWA({
registerType: 'autoUpdate',
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'mask-icon.svg'],
manifest: {
name: 'Pulse BPM Detector',
short_name: 'Pulse',
description: 'Real-time ambient BPM detector',
theme_color: '#0d0d12',
background_color: '#0d0d12',
display: 'standalone',
icons: [
{
src: 'pwa-192x192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png'
},
{
src: 'pwa-512x512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any maskable'
}
]
}
})
]
});