-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
43 lines (42 loc) · 1.2 KB
/
vite.config.js
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
import { VitePWA } from 'vite-plugin-pwa'
import { resolve } from 'path'
export default {
build: {
rollupOptions: {
input: {
main: resolve(__dirname, 'index.html'),
mempool: resolve(__dirname, 'mempool/index.html'),
mempoolBlocks: resolve(__dirname, 'blocks/index.html'),
mainEs: resolve(__dirname, 'es/index.html'),
mempoolEs: resolve(__dirname, 'es/mempool/index.html')
}
}
},
plugins: [
VitePWA({
// your PWA plugin configuration
registerType: 'autoUpdate',
includeAssets: ['favicon.svg', 'robots.txt'], // Additional assets to cache
manifest: {
name: "Timechain Cube",
short_name: "Timechain Cube",
description: "Bitcoin data displayed on beautifully rotating cube.",
"display": "standalone",
theme_color: '#000000',
icons: [
{
src: '/android-chrome-192x192.png', // Path to your icons
sizes: '192x192',
type: 'image/png',
},
{
src: '/android-chrome-512x512.png',
sizes: '512x512',
type: 'image/png',
},
],
"orientation": "portrait",
},
}),
],
}