add without plugin
This commit is contained in:
@@ -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',
|
||||
// }
|
||||
// }),
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user