File tree Expand file tree Collapse file tree 4 files changed +2
-10
lines changed Expand file tree Collapse file tree 4 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ export default withPwa(defineConfig({
8
8
__DATE__ : `'${ new Date ( ) . toISOString ( ) } '` ,
9
9
} ,
10
10
} ,
11
- // mpa: true,
12
11
lang : 'en-US' ,
13
12
title : 'VitePress PWA' ,
14
13
description : 'Vite Plugin PWA Integration example for VitePress' ,
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ export default withPwa(defineConfig({
8
8
__DATE__ : `'${ new Date ( ) . toISOString ( ) } '` ,
9
9
} ,
10
10
} ,
11
- // mpa: true,
12
11
lang : 'en-US' ,
13
12
title : 'VitePress PWA' ,
14
13
description : 'Vite Plugin PWA Integration example for VitePress' ,
Original file line number Diff line number Diff line change @@ -23,17 +23,12 @@ export function withPwa(config: UserConfig) {
23
23
24
24
const { pwa = { } , ...vitePressOptions } = config
25
25
26
- const {
27
- defaultMode = 'production' ,
28
- ...pwaPluginOptions
29
- } = pwa
30
-
31
- configurePWAOptions ( pwaPluginOptions )
26
+ configurePWAOptions ( pwa )
32
27
33
28
let api : VitePluginPWAAPI | undefined
34
29
35
30
vitePlugins . push (
36
- VitePWA ( { ...pwaPluginOptions } ) ,
31
+ VitePWA ( { ...pwa } ) ,
37
32
{
38
33
name : 'vite-plugin-pwa:vitepress' ,
39
34
apply : 'build' ,
Original file line number Diff line number Diff line change 1
1
import type { VitePWAOptions } from 'vite-plugin-pwa'
2
2
3
3
export interface PwaOptions extends Partial < VitePWAOptions > {
4
- defaultMode ?: string
5
4
}
6
5
7
6
declare module 'vitepress' {
You can’t perform that action at this time.
0 commit comments