Skip to content

Commit

Permalink
Added favicon, manifest generation and graphics for it
Browse files Browse the repository at this point in the history
  • Loading branch information
dm1sh committed Oct 19, 2021
1 parent e2a7e9f commit fe13f05
Show file tree
Hide file tree
Showing 9 changed files with 112 additions and 15 deletions.
7 changes: 6 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>React application</title>
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="apple-touch-icon" href="/pwa-192x192.png" />
<link rel="mask-icon" href="/favicon.svg" color="#FFFFFF" />
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta name="theme-color" content="#ffffff" />
<title>TooDo</title>
</head>

<body>
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"@types/react-dom": "^17.0.9",
"serve": "^12.0.0",
"typescript": "^4.4.2",
"vite": "^2.5.3"
"vite": "^2.5.3",
"vite-plugin-pwa": "^0.11.3"
},
"dependencies": {
"@mui/icons-material": "^5.0.3",
Expand Down
Binary file added public/favicon.ico
Binary file not shown.
70 changes: 70 additions & 0 deletions public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 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 added 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 added public/pwa-maskable-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions vite.config.js

This file was deleted.

34 changes: 34 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { defineConfig } from "vite";
import { VitePWA } from "vite-plugin-pwa";

export default defineConfig({
plugins: [
VitePWA({
includeAssets: ["robots.txt", "favicon.ico", "favicon.svg"],
manifest: {
name: "TooDo",
short_name: "TooDo",
description: "Task management application",
theme_color: "#ffffff",
icons: [
{
src: "pwa-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "pwa-512x512.png",
sizes: "512x512",
type: "image/png",
},
{
src: "pwa-maskable-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "any maskable",
},
],
},
}),
],
});

0 comments on commit fe13f05

Please sign in to comment.