40 lines
969 B
TypeScript
40 lines
969 B
TypeScript
|
|
import { defineConfig } from 'vite'
|
||
|
|
import react from '@vitejs/plugin-react'
|
||
|
|
import { VitePWA } from 'vite-plugin-pwa'
|
||
|
|
|
||
|
|
export default defineConfig({
|
||
|
|
plugins: [
|
||
|
|
react(),
|
||
|
|
VitePWA({
|
||
|
|
registerType: 'autoUpdate',
|
||
|
|
includeAssets: ['favicon.ico', 'apple-touch-icon.png'],
|
||
|
|
manifest: {
|
||
|
|
name: 'Black 7',
|
||
|
|
short_name: 'Black 7',
|
||
|
|
description: 'Scoring app for Last Panther',
|
||
|
|
theme_color: '#000000',
|
||
|
|
background_color: '#000000',
|
||
|
|
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',
|
||
|
|
},
|
||
|
|
],
|
||
|
|
},
|
||
|
|
}),
|
||
|
|
],
|
||
|
|
})
|