PWA; poprawki ikon

This commit is contained in:
2022-11-06 17:11:23 +01:00
parent 28d4fc1587
commit dc75fbd3b5
12 changed files with 111 additions and 45 deletions
+20 -4
View File
@@ -1,6 +1,22 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import { VitePWA } from 'vite-plugin-pwa';
export default defineConfig({
plugins: [vue()]
})
server: {
port: 8081
},
plugins: [
vue(),
VitePWA({
registerType: 'autoUpdate',
workbox: {
globPatterns: ['**/*.{js,css,html,png,svg,img}'],
},
devOptions: {
enabled: true,
},
}),
],
});