Skip to content

Commit e42ba5b

Browse files
committed
chore: update PWA configuration + hash history
1 parent 5968325 commit e42ba5b

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
<head>
44
<meta charset="UTF-8">
55
<link rel="icon" href="/favicon.ico">
6+
<meta name="description" content="Vue3 Template">
7+
<link rel="apple-touch-icon" href="/apple-touch-icon.png" sizes="180x180">
68
<meta name="viewport" content="width=device-width, initial-scale=1.0">
9+
<link rel="mask-icon" href="/favicon-dark.svg" color="#FFFFFF">
10+
<meta name="theme-color" content="#ffffff">
711
<title>Vite App</title>
812
</head>
913
<body>

public/apple-touch-icon.png

19.4 KB
Loading

public/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Allow: /

src/router/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { createRouter, createWebHistory } from 'vue-router'
1+
import { createRouter, createWebHashHistory } from 'vue-router'
22
import HomeView from '../views/HomeView.vue'
33

44
const router = createRouter({
5-
history: createWebHistory(import.meta.env.BASE_URL),
5+
history: createWebHashHistory(import.meta.env.BASE_URL),
66
routes: [
77
{
88
path: '/',

vite.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ export default defineConfig(({ mode }) => {
2727
}),
2828
VitePWA({
2929
registerType: 'autoUpdate',
30-
includeAssets: ['favicon.svg', 'safari-pinned-tab.svg'],
30+
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'favicon-dark.svg'],
3131
manifest: {
32-
name: 'kaandesu/vite-template',
33-
short_name: 'kaandesu/vite-template',
32+
name: 'vite-template',
33+
short_name: 'vite-template',
3434
theme_color: '#ffffff',
3535
icons: [
3636
{
@@ -53,7 +53,7 @@ export default defineConfig(({ mode }) => {
5353
},
5454
workbox: {
5555
navigateFallback: '/',
56-
cleanupOutdatedCaches: false
56+
cleanupOutdatedCaches: true
5757
},
5858
// client: {
5959
// installPrompt: true,

0 commit comments

Comments
 (0)