42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
import { defineConfig } from 'vite';
|
|
import laravel from 'laravel-vite-plugin';
|
|
import react from '@vitejs/plugin-react';
|
|
import { VitePWA } from 'vite-plugin-pwa'
|
|
import copy from "rollup-plugin-copy";
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: 'resources/js/app.tsx',
|
|
refresh: true,
|
|
}),
|
|
react(),
|
|
copy({
|
|
targets: [
|
|
{ src: 'resources/images/*', dest: 'public/images' },
|
|
]
|
|
}),
|
|
// VitePWA({
|
|
// registerType: 'autoUpdate',
|
|
// workbox: {
|
|
// globPatterns: ['**/*.{js,css,html,ico,png,svg}']
|
|
// },
|
|
// manifest: {
|
|
// name: 'Bermite',
|
|
// short_name: 'Bermite',
|
|
// lang: 'fr',
|
|
// description: 'Une application de suivi météo',
|
|
// theme_color: '#ffffff',
|
|
// icons: [
|
|
// {
|
|
// src: 'images/weather.png',
|
|
// sizes: '521x512',
|
|
// type: 'image/png',
|
|
// }
|
|
// ],
|
|
// display: 'standalone',
|
|
// }
|
|
// }),
|
|
],
|
|
});
|