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

6150
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -22,6 +22,7 @@
"@vitejs/plugin-vue": "^3.1.2",
"eslint": "^8.22.0",
"eslint-plugin-vue": "^9.3.0",
"vite": "^3.1.8"
"vite": "^3.1.8",
"vite-plugin-pwa": "^0.13.3"
}
}

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))