Skip to content

Commit

Permalink
Add icon
Browse files Browse the repository at this point in the history
  • Loading branch information
andreldm committed Sep 28, 2023
1 parent 82dc951 commit 57c058c
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 2 deletions.
Binary file added assets/icon.ico
Binary file not shown.
Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
88 changes: 88 additions & 0 deletions assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="icon" href="/assets/icon.ico" sizes="48x48" >
<link rel="icon" href="/assets/icon.svg" sizes="any" type="image/svg+xml">
<link rel="apple-touch-icon" href="/assets/icon.png"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Number Trainer</title>
</head>
Expand Down
15 changes: 14 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@ export default defineConfig({
base: "/number-trainer/",
plugins: [
vue(),
VitePWA({ registerType: 'autoUpdate', injectRegister: 'auto' })],
VitePWA({
registerType: 'autoUpdate',
injectRegister: 'auto',
manifest: {
icons: [
{
src: "/assets/icon.svg",
sizes: "any",
type: "image/svg+xml",
purpose: "any maskable",
},
]
}
})],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
Expand Down

0 comments on commit 57c058c

Please sign in to comment.