Skip to content

Commit

Permalink
Add pwa-asset-generator for icons so app can be installed as a pwa.
Browse files Browse the repository at this point in the history
  • Loading branch information
wscullen committed Mar 24, 2024
1 parent 86abfe5 commit c26f62a
Show file tree
Hide file tree
Showing 10 changed files with 453 additions and 5 deletions.
5 changes: 3 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/favicon.ico" sizes="48x48">
<link rel="icon" href="/favicon.svg" sizes="any" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon-180x180.png"> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Scoreboard!</title>
</head>
<body>
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"generate-pwa-assets": "pwa-assets-generator --preset minimal-2023 public/icon.png"
},
"dependencies": {
"@types/web-bluetooth": "^0.0.20",
Expand All @@ -21,6 +22,7 @@
"@types/react-dom": "^18.2.19",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@vite-pwa/assets-generator": "^0.2.4",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.18",
"eslint": "^8.56.0",
Expand Down
Loading

0 comments on commit c26f62a

Please sign in to comment.