31 lines
845 B
JavaScript
31 lines
845 B
JavaScript
import { defineConfig } from 'vite';
|
|
import laravel from 'laravel-vite-plugin';
|
|
import react from '@vitejs/plugin-react';
|
|
import { VitePWA } from 'vite-plugin-pwa'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: 'resources/js/app.tsx',
|
|
refresh: true,
|
|
}),
|
|
react(),
|
|
VitePWA({
|
|
registerType: 'autoUpdate',
|
|
manifest: {
|
|
name: 'Bermite',
|
|
short_name: 'Bermite',
|
|
description: 'Une application de suivi météo',
|
|
theme_color: '#ffffff',
|
|
icons: [
|
|
{
|
|
src: 'images/weather.png',
|
|
sizes: '521x512',
|
|
type: 'image/png',
|
|
}
|
|
]
|
|
}
|
|
})
|
|
],
|
|
});
|