mirror of
https://github.com/fmhy/edit.git
synced 2026-02-19 01:31:41 +11:00
PWA
This commit is contained in:
parent
fe7f5bb663
commit
3f1373eb7a
9 changed files with 2867 additions and 181 deletions
|
|
@ -1,8 +1,12 @@
|
|||
import { h } from "vue";
|
||||
import "uno.css";
|
||||
import type { Theme } from "vitepress";
|
||||
import {type Theme, inBrowser } from "vitepress";
|
||||
import DefaultTheme from "vitepress/theme";
|
||||
import "./style.css";
|
||||
import "uno.css";
|
||||
|
||||
if (inBrowser)
|
||||
import('./pwa')
|
||||
|
||||
|
||||
export default {
|
||||
Layout: () => {
|
||||
|
|
|
|||
3
.vitepress/theme/pwa.ts
Normal file
3
.vitepress/theme/pwa.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import { registerSW } from 'virtual:pwa-register'
|
||||
|
||||
registerSW({ immediate: true })
|
||||
Loading…
Add table
Add a link
Reference in a new issue