chore: add generate pwa icons script (#2130)
This commit is contained in:
parent
0767df3f78
commit
d601a117c0
28 changed files with 449 additions and 9 deletions
|
@ -76,8 +76,13 @@ export async function createI18n(): Promise<LocalizedWebManifest> {
|
|||
orientation: 'natural',
|
||||
display: 'standalone',
|
||||
display_override: ['window-controls-overlay'],
|
||||
categories: ['social', 'social networking'],
|
||||
categories: ['social', 'social networking', 'news'],
|
||||
icons: [
|
||||
{
|
||||
src: 'pwa-64x64.png',
|
||||
sizes: '64x64',
|
||||
type: 'image/png',
|
||||
},
|
||||
{
|
||||
src: 'pwa-192x192.png',
|
||||
sizes: '192x192',
|
||||
|
@ -114,6 +119,8 @@ export async function createI18n(): Promise<LocalizedWebManifest> {
|
|||
},
|
||||
}
|
||||
|
||||
// TODO: add related_applications, only when env === 'release'
|
||||
|
||||
const locales: RequiredWebManifestEntry[] = await Promise.all(
|
||||
pwaLocales
|
||||
.filter(l => l.code !== 'en-US')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue