chore: bump to pwa plugin 0.16.4 (#2159)

Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
Joaquín Sánchez 2023-06-23 21:39:02 +02:00 committed by GitHub
parent 25a5d3fe7b
commit e453a316f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 67 additions and 6 deletions

View file

@ -117,9 +117,23 @@ export async function createI18n(): Promise<LocalizedWebManifest> {
],
},
},
handle_links: 'preferred',
launch_handler: {
client_mode: ['navigate-existing', 'auto'],
},
edge_side_panel: {
preferred_width: 480,
},
}
// TODO: add related_applications, only when env === 'release'
if (env === 'release') {
manifestEntries.prefer_related_applications = true
manifestEntries.related_applications = [{
platform: 'windows',
url: 'https://www.microsoft.com/store/apps/9PNZMMXQHQZ5',
id: '53213ElkTeam.Elk_6x2f3wfg7gnst',
}]
}
const locales: RequiredWebManifestEntry[] = await Promise.all(
pwaLocales