51 lines
1.5 KiB
JavaScript
51 lines
1.5 KiB
JavaScript
import { defineConfig } from 'vite';
|
|
import laravel from 'laravel-vite-plugin';
|
|
import react from '@vitejs/plugin-react';
|
|
import copy from "rollup-plugin-copy";
|
|
import { VitePWA } from 'vite-plugin-pwa'
|
|
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: 'resources/js/app.tsx',
|
|
refresh: true,
|
|
}),
|
|
react(),
|
|
copy({
|
|
targets: [
|
|
{ src: 'resources/images/*', dest: 'public/images' },
|
|
]
|
|
}),
|
|
VitePWA({
|
|
registerType: 'autoUpdate',
|
|
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'mask-icon.svg'],
|
|
manifest: {
|
|
name: 'Bermite',
|
|
short_name: 'Bermite',
|
|
lang: "fr",
|
|
description: 'Application de suivi météo',
|
|
theme_color: '#ffffff',
|
|
display: "standalone",
|
|
icons: [
|
|
{
|
|
src: '/pwa-64x64.png',
|
|
sizes: '64x64',
|
|
type: 'image/png'
|
|
},
|
|
{
|
|
src: '/pwa-192x192.png',
|
|
sizes: '192x192',
|
|
type: 'image/png'
|
|
},
|
|
{
|
|
src: '/pwa-512x512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png'
|
|
}
|
|
]
|
|
}
|
|
})
|
|
],
|
|
});
|