#1: added pwa vite plugin

This commit is contained in:
Elmar Kresse
2024-04-23 15:54:34 +02:00
parent e13dad48b4
commit 24cbcf0ead
4 changed files with 4016 additions and 57 deletions

View File

@@ -17,10 +17,18 @@
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import { fileURLToPath } from "node:url";
import { VitePWA } from 'vite-plugin-pwa'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
plugins: [
vue(),
VitePWA({
registerType: 'autoUpdate',
devOptions: {
enabled: true
}
})],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),