Skip to content

Commit

Permalink
Vite-PWA Plugin Dependency Fix & PWA Assets Generation
Browse files Browse the repository at this point in the history
  • Loading branch information
cgjgh committed Apr 19, 2024
1 parent 0bed16b commit 21dc4da
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 3 deletions.
7 changes: 7 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
"socket.io-client": "^4.7.2",
"sort-package-json": "^2.6.0",
"vite": "^5.0.0",
"vite-plugin-pwa": "^0.19.8",
"vitepress": "^1.0.2",
"vue-router": "^4.2.4",
"vuetify": "^3.4.10",
Expand Down
19 changes: 16 additions & 3 deletions pwa-assets.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
import {
defineConfig,
minimal2023Preset as preset
defineConfig
} from '@vite-pwa/assets-generator/dist/config'

export default defineConfig({
headLinkOptions: {
preset: '2023'
},
preset,
preset: {
transparent: {
sizes: [64, 192, 512],
favicons: [[48, 'favicon.ico']],
padding: 0.1
},
maskable: {
sizes: [512],
padding: 0.1
},
apple: {
sizes: [180],
padding: 0.15
}
},
images: ['./ui/public/logo-512x512.png']
})
Binary file modified ui/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/public/maskable-icon-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/public/pwa-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/public/pwa-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui/public/pwa-64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 21dc4da

Please sign in to comment.