add vite-plugin-pwa

This commit is contained in:
2022-11-15 02:27:37 +01:00
parent 35b9897a27
commit 17af7fa80b
3 changed files with 6109 additions and 56 deletions

View File

@@ -1,11 +1,15 @@
import { fileURLToPath, URL } from 'node:url'
import { fileURLToPath, URL } from 'node:url';
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';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
plugins: [
vue(),
VitePWA(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))