38 lines
1.0 KiB
JavaScript
Executable File
38 lines
1.0 KiB
JavaScript
Executable File
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: ['icons/*.png', 'assets/*.svg'],
|
|
manifest: {
|
|
name: 'Open Food Facts Client',
|
|
short_name: 'OFF-Client',
|
|
description: 'Scan food barcode, and learn infos about the product. Make a better choice during your shopping.',
|
|
theme_color: 'orange',
|
|
display: 'standalone',
|
|
start_url: '/',
|
|
strategies: 'injectManifest',
|
|
icons: [
|
|
{
|
|
src: '/icons/android-chrome-192x192.png',
|
|
sizes: '192x192',
|
|
type: 'image/png',
|
|
purpose: 'any maskable'
|
|
},
|
|
{
|
|
src: '/icons/android-chrome-512x512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png',
|
|
purpose: 'any maskable'
|
|
}
|
|
]
|
|
}
|
|
})
|
|
]
|
|
})
|