forked from admin/french-vocab
33 lines
760 B
TypeScript
33 lines
760 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',
|
||
|
|
manifest: {
|
||
|
|
name: 'French Vocabulary',
|
||
|
|
short_name: 'FrenchVocab',
|
||
|
|
description: 'Master French with spaced repetition',
|
||
|
|
theme_color: '#3b82f6',
|
||
|
|
background_color: '#ffffff',
|
||
|
|
display: 'standalone',
|
||
|
|
icons: [
|
||
|
|
{
|
||
|
|
src: '/icon-192.png',
|
||
|
|
sizes: '192x192',
|
||
|
|
type: 'image/png'
|
||
|
|
},
|
||
|
|
{
|
||
|
|
src: '/icon-512.png',
|
||
|
|
sizes: '512x512',
|
||
|
|
type: 'image/png'
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
})
|
||
|
|
],
|
||
|
|
})
|