33 lines
953 B
TypeScript
33 lines
953 B
TypeScript
import { defineConfig } from 'vite';
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
import { VitePWA } from 'vite-plugin-pwa';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
svelte(),
|
|
VitePWA({
|
|
registerType: 'autoUpdate',
|
|
includeAssets: ['icons/favicon.svg'],
|
|
manifest: {
|
|
name: 'Zahlzerlegung',
|
|
short_name: 'Zahlen',
|
|
description: 'Zahlzerlegung von 4 bis 10 spielerisch üben',
|
|
theme_color: '#1a2c5c',
|
|
background_color: '#1a2c5c',
|
|
display: 'standalone',
|
|
orientation: 'any',
|
|
lang: 'de',
|
|
icons: [
|
|
{ src: '/icons/icon-192.png', sizes: '192x192', type: 'image/png' },
|
|
{ src: '/icons/icon-512.png', sizes: '512x512', type: 'image/png' },
|
|
{ src: '/icons/icon-512.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' },
|
|
],
|
|
},
|
|
}),
|
|
],
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
},
|
|
});
|