41 lines
893 B
Plaintext
41 lines
893 B
Plaintext
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
import { VitePWA } from 'vite-plugin-pwa';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
sveltekit(),
|
|
VitePWA({
|
|
registerType: 'autoUpdate',
|
|
workbox: {
|
|
globPatterns: ['**/*.{js,css,html,ico,png,svg,json,webp}']
|
|
},
|
|
manifest: {
|
|
id: '/',
|
|
name: '{{PROJECT_NAME}}',
|
|
short_name: '{{PROJECT_NAME}}',
|
|
description: 'PWA for {{MODEL_DISPLAY_NAME}} management with Odoo integration',
|
|
start_url: '/',
|
|
scope: '/',
|
|
display: 'standalone',
|
|
background_color: '#ffffff',
|
|
theme_color: '#667eea',
|
|
icons: [
|
|
{
|
|
src: '/icon-192.png',
|
|
sizes: '192x192',
|
|
type: 'image/png',
|
|
purpose: 'any maskable'
|
|
},
|
|
{
|
|
src: '/icon-512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png',
|
|
purpose: 'any maskable'
|
|
}
|
|
]
|
|
}
|
|
})
|
|
]
|
|
});
|