doodly/vite.config.ts
Ashhhleyyy c92d26d4b9
All checks were successful
continuous-integration/drone/push Build is passing
fix(deploy): auto update PWA
2022-08-13 22:55:51 +01:00

32 lines
981 B
TypeScript

import { defineConfig } from 'vite';
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { VitePWA } from 'vite-plugin-pwa';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
svelte(),
VitePWA({
registerType: 'autoUpdate',
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',
},
],
},
}),
],
});