31 lines
873 B
TypeScript
31 lines
873 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import { VitePWA } from 'vite-plugin-pwa'
|
|
|
|
export default defineConfig({
|
|
server: {
|
|
port: process.env.PORT ? Number(process.env.PORT) : 5173,
|
|
strictPort: !!process.env.PORT,
|
|
},
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
VitePWA({
|
|
registerType: 'autoUpdate',
|
|
manifest: {
|
|
name: 'Assignment Monitor',
|
|
short_name: 'AssignMonitor',
|
|
description: 'Trainee-Bewertungs-App für Capgemini Management Consultants',
|
|
theme_color: '#0070AD',
|
|
background_color: '#ffffff',
|
|
display: 'standalone',
|
|
icons: [
|
|
{ src: 'pwa-192.png', sizes: '192x192', type: 'image/png' },
|
|
{ src: 'pwa-512.png', sizes: '512x512', type: 'image/png' },
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
})
|