add without plugin

This commit is contained in:
Romulus21
2023-09-24 15:32:49 +02:00
parent a9980ad268
commit f93a37c932
9 changed files with 737 additions and 690 deletions

View File

@@ -2,6 +2,7 @@ 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: [
@@ -10,22 +11,31 @@ export default defineConfig({
refresh: true,
}),
react(),
VitePWA({
registerType: 'autoUpdate',
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',
}
]
}
})
copy({
targets: [
{ src: 'resources/images/*', dest: 'public/build/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',
// }
// }),
],
});