33 lines
824 B
TypeScript
33 lines
824 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import { VitePWA } from 'vite-plugin-pwa'
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
VitePWA({
|
|
registerType: 'prompt',
|
|
includeAssets: ['favicon.ico', 'logo.png'],
|
|
manifest: {
|
|
name: 'Kapteins Daagbox',
|
|
short_name: 'Daagbox',
|
|
description: 'Digital maritime ship logbook with E2E encryption and Passkeys',
|
|
theme_color: '#1e293b',
|
|
background_color: '#0f172a',
|
|
display: 'standalone',
|
|
start_url: '/',
|
|
orientation: 'portrait',
|
|
icons: [
|
|
{
|
|
src: 'logo.png',
|
|
sizes: '512x512',
|
|
type: 'image/png',
|
|
purpose: 'any maskable'
|
|
}
|
|
]
|
|
}
|
|
})
|
|
]
|
|
})
|