perf: remove PWA
This commit is contained in:
parent
510b482654
commit
7b1721300d
@ -3,7 +3,6 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<link rel="apple-touch-icon" href="/pwa-192x192.png" />
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#00aba9" />
|
||||
<meta name="msapplication-TileColor" content="#00aba9" />
|
||||
</head>
|
||||
|
@ -1,14 +0,0 @@
|
||||
import { type UserModule } from '~/types'
|
||||
|
||||
// https://github.com/antfu/vite-plugin-pwa#automatic-reload-when-new-content-available
|
||||
export const install: UserModule = ({ isClient, router }) => {
|
||||
if (!isClient)
|
||||
return
|
||||
|
||||
router.isReady()
|
||||
.then(async () => {
|
||||
const { registerSW } = await import('virtual:pwa-register')
|
||||
registerSW({ immediate: true })
|
||||
})
|
||||
.catch(() => {})
|
||||
}
|
@ -21,7 +21,7 @@
|
||||
"vite-plugin-pages/client",
|
||||
"vite-plugin-vue-component-preview/client",
|
||||
// "vite-plugin-vue-layouts/client",
|
||||
"vite-plugin-pwa/client",
|
||||
// "vite-plugin-pwa/client",
|
||||
"unplugin-vue-macros/macros-global",
|
||||
// "vite-plugin-vue-layouts/client.d.ts"
|
||||
"vite-plugin-vue-meta-layouts/client.d.ts"
|
||||
|
@ -9,7 +9,6 @@ import MetaLayouts from 'vite-plugin-vue-meta-layouts'
|
||||
import Components from 'unplugin-vue-components/vite'
|
||||
import AutoImport from 'unplugin-auto-import/vite'
|
||||
import Markdown from 'vite-plugin-vue-markdown'
|
||||
import { VitePWA } from 'vite-plugin-pwa'
|
||||
import VueI18n from '@intlify/unplugin-vue-i18n/vite'
|
||||
import Inspect from 'vite-plugin-inspect'
|
||||
import Inspector from 'vite-plugin-vue-inspector'
|
||||
@ -99,35 +98,6 @@ export default defineConfig({
|
||||
},
|
||||
}),
|
||||
|
||||
// https://github.com/antfu/vite-plugin-pwa
|
||||
VitePWA({
|
||||
registerType: 'autoUpdate',
|
||||
includeAssets: ['favicon.svg', 'safari-pinned-tab.svg'],
|
||||
manifest: {
|
||||
name: '合肥市南园学校19预科2班',
|
||||
short_name: '合肥市南园学校19预科2班',
|
||||
theme_color: '#ffffff',
|
||||
icons: [
|
||||
{
|
||||
src: '/pwa-192x192.png',
|
||||
sizes: '192x192',
|
||||
type: 'image/png',
|
||||
},
|
||||
{
|
||||
src: '/pwa-512x512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
},
|
||||
{
|
||||
src: '/pwa-512x512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png',
|
||||
purpose: 'any maskable',
|
||||
},
|
||||
],
|
||||
},
|
||||
}),
|
||||
|
||||
// https://github.com/intlify/bundle-tools/tree/main/packages/unplugin-vue-i18n
|
||||
VueI18n({
|
||||
runtimeOnly: true,
|
||||
|
Loading…
Reference in New Issue
Block a user