-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.js
More file actions
26 lines (25 loc) 路 915 Bytes
/
Copy pathvite.config.js
File metadata and controls
26 lines (25 loc) 路 915 Bytes
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
import { defineConfig } from 'vite';
import { VitePWA } from 'vite-plugin-pwa';
export default defineConfig({
plugins: [
VitePWA({
registerType: 'autoUpdate',
manifest: {
name: 'soundBlade',
short_name: 'soundBlade',
description: 'Chirurgia audio nel browser',
theme_color: '#121212',
icons: [
{ src: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/72x72/1f52a.png', sizes: '72x72', type: 'image/png' },
{ src: 'https://cdn.jsdelivr.net/gh/twitter/twemoji@latest/assets/512x512/1f52a.png', sizes: '512x512', type: 'image/png' }
]
}
})
],
server: {
headers: {
'Cross-Origin-Embedder-Policy': 'require-corp',
'Cross-Origin-Opener-Policy': 'same-origin',
}
}
});