kevinmarrec / nuxt-pwa-module

⚠️ DEPRECATED ⚠️ Zero config PWA solution for Nuxt 3
MIT License
339 stars 32 forks source link

Manifest properties don't default as expected #102

Open tmlmt opened 1 year ago

tmlmt commented 1 year ago

Hi @kevinmarrec, see repro here: https://stackblitz.com/edit/nuxt-starter-ufzybv 3 issues at least:

nuxt.config.ts:

  modules: ['@kevinmarrec/nuxt-pwa'],
  pwa: {
    icon: false,
    workbox: false,
    meta: false,
  },

package.json:

{
  "name": "stackblitz",
  "description": "My description",
  "private": true,
  "scripts": {
    "build": "nuxt build",
    "dev": "HOST=0.0.0.0 nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "devDependencies": {
    "@kevinmarrec/nuxt-pwa": "^0.17.0",
    "@types/node": "^18",
    "nuxt": "^3.4.3"
  }
}

resulting manifest.json:

{
  "name": "Nuxt PWA",
  "short_name": "",
  "description": "",
  "lang": "en",
  "start_url": "/?standalone=true",
  "display": "standalone",
  "background_color": "#ffffff",
  "theme_color": "#000000",
  "icons": []
}