32 lines
963 B
JavaScript
32 lines
963 B
JavaScript
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: 'StatSphere – Athlete Stats Platform',
|
||
short_name: 'StatSphere',
|
||
description: 'Track and compare athlete stats across multiple sports',
|
||
theme_color: '#0a0f1e',
|
||
background_color: '#0a0f1e',
|
||
display: 'standalone',
|
||
orientation: 'portrait-primary',
|
||
scope: '/',
|
||
start_url: '/',
|
||
icons: [
|
||
{ src: 'icon-192.png', sizes: '192x192', type: 'image/png' },
|
||
{ src: 'icon-512.png', sizes: '512x512', type: 'image/png', purpose: 'any maskable' }
|
||
]
|
||
},
|
||
workbox: {
|
||
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2}']
|
||
}
|
||
})
|
||
]
|
||
})
|