Skip to content

Commit 8395d73

Browse files
committed
chore: remove mpa support
1 parent 0072dd1 commit 8395d73

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

examples/pwa-prompt/.vitepress/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export default withPwa(defineConfig({
88
__DATE__: `'${new Date().toISOString()}'`,
99
},
1010
},
11-
// mpa: true,
1211
lang: 'en-US',
1312
title: 'VitePress PWA',
1413
description: 'Vite Plugin PWA Integration example for VitePress',

examples/pwa-simple/.vitepress/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ export default withPwa(defineConfig({
88
__DATE__: `'${new Date().toISOString()}'`,
99
},
1010
},
11-
// mpa: true,
1211
lang: 'en-US',
1312
title: 'VitePress PWA',
1413
description: 'Vite Plugin PWA Integration example for VitePress',

src/index.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,12 @@ export function withPwa(config: UserConfig) {
2323

2424
const { pwa = {}, ...vitePressOptions } = config
2525

26-
const {
27-
defaultMode = 'production',
28-
...pwaPluginOptions
29-
} = pwa
30-
31-
configurePWAOptions(pwaPluginOptions)
26+
configurePWAOptions(pwa)
3227

3328
let api: VitePluginPWAAPI | undefined
3429

3530
vitePlugins.push(
36-
VitePWA({ ...pwaPluginOptions }),
31+
VitePWA({ ...pwa }),
3732
{
3833
name: 'vite-plugin-pwa:vitepress',
3934
apply: 'build',

src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { VitePWAOptions } from 'vite-plugin-pwa'
22

33
export interface PwaOptions extends Partial<VitePWAOptions> {
4-
defaultMode?: string
54
}
65

76
declare module 'vitepress' {

0 commit comments

Comments
 (0)