|
|
@@ -40,39 +40,41 @@ export default defineConfig(({ command, mode }) => {
|
|
|
},
|
|
|
webp: false
|
|
|
}),
|
|
|
- VitePWA({
|
|
|
- registerType: 'autoUpdate',
|
|
|
- manifest: {
|
|
|
- name: 'FirstCash',
|
|
|
- short_name: 'FirstCash',
|
|
|
- theme_color: '#161616',
|
|
|
- background_color: '#161616',
|
|
|
- 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'
|
|
|
- }
|
|
|
- ]
|
|
|
- }
|
|
|
- })
|
|
|
- ],
|
|
|
+ mode === 'app'
|
|
|
+ ? null
|
|
|
+ : VitePWA({
|
|
|
+ registerType: 'autoUpdate',
|
|
|
+ manifest: {
|
|
|
+ name: 'FirstCash',
|
|
|
+ short_name: 'FirstCash',
|
|
|
+ theme_color: '#161616',
|
|
|
+ background_color: '#161616',
|
|
|
+ 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'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ })
|
|
|
+ ].filter(i => i != null),
|
|
|
resolve: {
|
|
|
alias: {
|
|
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
|
@@ -85,9 +87,6 @@ export default defineConfig(({ command, mode }) => {
|
|
|
additionalData: '@import "@/styles/common.less";'
|
|
|
}
|
|
|
}
|
|
|
- },
|
|
|
- build: {
|
|
|
- rollupOptions: {}
|
|
|
}
|
|
|
}
|
|
|
})
|