doodly/vite.config.ts

33 lines
981 B
TypeScript
Raw Normal View History

2022-08-13 15:17:26 +00:00
import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
2022-08-13 15:08:44 +00:00
import { VitePWA } from 'vite-plugin-pwa';
// https://vitejs.dev/config/
export default defineConfig({
2022-08-13 15:17:26 +00:00
plugins: [
svelte(),
VitePWA({
2022-08-13 21:55:51 +00:00
registerType: 'autoUpdate',
2022-08-13 15:17:26 +00:00
includeAssets: ['favicon.png', 'apple-touch-icon.png'],
manifest: {
name: 'Doodly',
short_name: 'Doodly',
description: 'Drawing game with friends',
theme_color: '#ffffff',
icons: [
{
src: 'favicon.png',
sizes: '256x256',
type: 'image/png',
},
{
src: 'favicon-192.png',
sizes: '192x192',
type: 'image/png',
},
],
},
}),
],
2022-08-13 15:08:44 +00:00
});