version 0.0.1
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
sveltekit(),
|
||||
SvelteKitPWA({
|
||||
registerType: 'autoUpdate',
|
||||
manifest: {
|
||||
name: 'DSA 4.1 Helfer',
|
||||
short_name: 'DSA Helfer',
|
||||
description: 'Offline-Helfer für Das Schwarze Auge 4.1',
|
||||
start_url: '/',
|
||||
scope: '/',
|
||||
display: 'standalone',
|
||||
background_color: '#1a1a2e',
|
||||
theme_color: '#16213e',
|
||||
lang: 'de',
|
||||
icons: [
|
||||
{
|
||||
src: '/icons/icon-192.png',
|
||||
sizes: '192x192',
|
||||
type: 'image/png',
|
||||
purpose: 'any'
|
||||
},
|
||||
{
|
||||
src: '/icons/icon-512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
purpose: 'any'
|
||||
},
|
||||
{
|
||||
src: '/icons/maskable-512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
purpose: 'maskable'
|
||||
}
|
||||
]
|
||||
},
|
||||
workbox: {
|
||||
globPatterns: ['client/**/*.{js,css,ico,png,svg,webp,woff,woff2}']
|
||||
}
|
||||
})
|
||||
],
|
||||
test: {
|
||||
include: ['tests/**/*.{test,spec}.{js,ts}'],
|
||||
setupFiles: ['tests/setup.ts']
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user