Pwa-module: Icon files generated, but do not appear in manifest or favicon

Created on 6 Sep 2019  路  4Comments  路  Source: nuxt-community/pwa-module

Version

v3.0.0-beta.17

Reproduction link

https://deploy-preview-4028--bootstrap-vue.netlify.com/

Steps to reproduce

Inspect <head> element and see that there is no favicon. Inpsect manifest to see that icons is an empty array.

What is expected ?

Faviocon is generated, manifest populated with icons array

What is actually happening?

no icons (although Icon files are generated in the /icons directory)

/cc @pi0

This bug report is available on Nuxt community (#c167)
bug

Most helpful comment

Fixed by v3.0.0-beta.18

All 4 comments

Were were using the defaults (default icon file and location, etc), and see the icon files being generated.

Added in new pwa: { icon: { ... } } icon entry into nuxt.config.js, but see the same results.

Hi,
after digging into the source code if found a little workaround for that:

manifest: {
  icons: [],
},
pwa: {
  icon: {
    iconFileName: 'android-chrome-512x512.png',
    sizes: [36, 48, 72, 96, 144, 192, 256, 384, 512],
  },
  manifest: {
    name: 'Foo',
    short_name: 'Foo',
  },
},

I've verified that @preventdefault's workaround works

Fixed by v3.0.0-beta.18

Was this page helpful?
0 / 5 - 0 ratings

Related issues

homerjam picture homerjam  路  3Comments

jhull picture jhull  路  3Comments

akirarika picture akirarika  路  4Comments

tsimenis picture tsimenis  路  5Comments

XanderLuciano picture XanderLuciano  路  6Comments