add vitejsPWA

This commit is contained in:
Romulus21
2023-09-24 12:43:33 +02:00
parent 190c95467b
commit 59c6ccafb4
6 changed files with 1872 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
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: [
@@ -9,5 +10,6 @@ export default defineConfig({
refresh: true,
}),
react(),
VitePWA({ registerType: 'autoUpdate' })
],
});