|
@@ -2,6 +2,7 @@ import { fileURLToPath, URL } from 'node:url'
|
|
|
import { defineConfig, loadEnv } from 'vite'
|
|
import { defineConfig, loadEnv } from 'vite'
|
|
|
import vue from '@vitejs/plugin-vue'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
import viteImagemin from 'vite-plugin-imagemin'
|
|
import viteImagemin from 'vite-plugin-imagemin'
|
|
|
|
|
+import { VitePWA } from 'vite-plugin-pwa'
|
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
// https://vitejs.dev/config/
|
|
|
export default defineConfig(({ command, mode }) => {
|
|
export default defineConfig(({ command, mode }) => {
|
|
@@ -37,6 +38,38 @@ export default defineConfig(({ command, mode }) => {
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
webp: false
|
|
webp: false
|
|
|
|
|
+ }),
|
|
|
|
|
+ VitePWA({
|
|
|
|
|
+ registerType: 'autoUpdate',
|
|
|
|
|
+ manifest: {
|
|
|
|
|
+ name: 'FirstCash',
|
|
|
|
|
+ short_name: 'FirstCash',
|
|
|
|
|
+ theme_color: '#1c1c1c',
|
|
|
|
|
+ background_color: '#1c1c1c',
|
|
|
|
|
+ display: 'fullscreen',
|
|
|
|
|
+ icons: [
|
|
|
|
|
+ {
|
|
|
|
|
+ src: '/icon-192x192.png',
|
|
|
|
|
+ sizes: '192x192',
|
|
|
|
|
+ type: 'image/png'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ src: '/icon-256x256.png',
|
|
|
|
|
+ sizes: '256x256',
|
|
|
|
|
+ type: 'image/png'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ src: '/icon-384x384.png',
|
|
|
|
|
+ sizes: '384x384',
|
|
|
|
|
+ type: 'image/png'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ src: '/icon-512x512.png',
|
|
|
|
|
+ sizes: '512x512',
|
|
|
|
|
+ type: 'image/png'
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
],
|
|
],
|
|
|
resolve: {
|
|
resolve: {
|