Skip to content

Commit 53568d0

Browse files
authoredMar 21, 2025
fix(manifest): default manifest theme_color and description not being applied (#839)
* fix(manifest): default description need to come from package * fix(manifest): same for theme_color
1 parent 2949c3a commit 53568d0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎src/options.ts

+2
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,11 @@ export async function resolveOptions(ctx: PWAPluginContext): Promise<ResolvedVit
105105
const defaultManifest: Partial<ManifestOptions> = {
106106
name: pkg.name,
107107
short_name: pkg.name,
108+
description: pkg.description,
108109
start_url: basePath,
109110
display: 'standalone',
110111
background_color: '#ffffff',
112+
theme_color: '#42b883',
111113
lang: 'en',
112114
scope,
113115
}

‎src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ export interface ManifestOptions {
530530
*/
531531
background_color: string
532532
/**
533-
* @default '#42b883
533+
* @default `#42b883`
534534
*/
535535
theme_color: string
536536
/**

0 commit comments

Comments
 (0)
Please sign in to comment.