add pwa
4380
package-lock.json
generated
@@ -15,6 +15,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@vitejs/plugin-vue": "^4.5.0",
|
||||
"vite": "^5.0.0"
|
||||
"vite": "^5.0.0",
|
||||
"vite-plugin-pwa": "^0.17.4"
|
||||
}
|
||||
}
|
||||
|
||||
BIN
public/pwa/apple-icon-180.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
public/pwa/apple-splash-1125-2436.jpg
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
public/pwa/apple-splash-1136-640.jpg
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
public/pwa/apple-splash-1170-2532.jpg
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
public/pwa/apple-splash-1179-2556.jpg
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
public/pwa/apple-splash-1242-2208.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
public/pwa/apple-splash-1242-2688.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
public/pwa/apple-splash-1284-2778.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
public/pwa/apple-splash-1290-2796.jpg
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
public/pwa/apple-splash-1334-750.jpg
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
public/pwa/apple-splash-1536-2048.jpg
Normal file
|
After Width: | Height: | Size: 71 KiB |
BIN
public/pwa/apple-splash-1620-2160.jpg
Normal file
|
After Width: | Height: | Size: 76 KiB |
BIN
public/pwa/apple-splash-1668-2224.jpg
Normal file
|
After Width: | Height: | Size: 78 KiB |
BIN
public/pwa/apple-splash-1668-2388.jpg
Normal file
|
After Width: | Height: | Size: 81 KiB |
BIN
public/pwa/apple-splash-1792-828.jpg
Normal file
|
After Width: | Height: | Size: 32 KiB |
BIN
public/pwa/apple-splash-2048-1536.jpg
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
public/pwa/apple-splash-2048-2732.jpg
Normal file
|
After Width: | Height: | Size: 102 KiB |
BIN
public/pwa/apple-splash-2160-1620.jpg
Normal file
|
After Width: | Height: | Size: 72 KiB |
BIN
public/pwa/apple-splash-2208-1242.jpg
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
public/pwa/apple-splash-2224-1668.jpg
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
public/pwa/apple-splash-2388-1668.jpg
Normal file
|
After Width: | Height: | Size: 75 KiB |
BIN
public/pwa/apple-splash-2436-1125.jpg
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
public/pwa/apple-splash-2532-1170.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
public/pwa/apple-splash-2556-1179.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
public/pwa/apple-splash-2688-1242.jpg
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
public/pwa/apple-splash-2732-2048.jpg
Normal file
|
After Width: | Height: | Size: 97 KiB |
BIN
public/pwa/apple-splash-2778-1284.jpg
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
public/pwa/apple-splash-2796-1290.jpg
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
public/pwa/apple-splash-640-1136.jpg
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
public/pwa/apple-splash-750-1334.jpg
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
public/pwa/apple-splash-828-1792.jpg
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
public/pwa/manifest-icon-192.maskable.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
public/pwa/manifest-icon-512.maskable.png
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
@@ -1,7 +1,46 @@
|
||||
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({
|
||||
registerType: 'autoUpdate',
|
||||
injectRegister: 'auto',
|
||||
manifest: {
|
||||
name: 'Bitcoin Average',
|
||||
short_name: 'BtcAvg',
|
||||
description: 'Display bitcoin average price',
|
||||
theme_color: '#f7931d',
|
||||
icons: [
|
||||
{
|
||||
src: 'pwa/manifest-icon-192.maskable.png',
|
||||
sizes: '192x192',
|
||||
type: 'image/png',
|
||||
purpose: 'any'
|
||||
},
|
||||
{
|
||||
src: 'pwa/manifest-icon-192.maskable.png',
|
||||
sizes: '192x192',
|
||||
type: 'image/png',
|
||||
purpose: 'maskable'
|
||||
},
|
||||
{
|
||||
src: 'pwa/manifest-icon-512.maskable.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
purpose: 'any'
|
||||
},
|
||||
{
|
||||
src: 'pwa/manifest-icon-512.maskable.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
purpose: 'maskable'
|
||||
}
|
||||
],
|
||||
},
|
||||
}),
|
||||
],
|
||||
});
|
||||
|
||||