nuxt-community / pwa-module

Zero config PWA solution for Nuxt.js
https://pwa.nuxtjs.org
MIT License
1.24k stars 171 forks source link

Disable manifest and meta #455

Open rinu opened 3 years ago

rinu commented 3 years ago

I would like to use this project just for the service worker and nothing else. The manifest and meta information need to be custom and change at runtime for my project.

There doesn't seem to be any way of doing this at the moment. Should this project be split up into seperately installable modules?

ratherblue commented 3 years ago

You can disable the individual modules with false.

from the docs:

PWA module is a collection of smaller modules that are designed to magically work out of the box together. To disable each sub-module, you can pass false option with its name as key. For example to disable icon module:

{
  pwa: {
    icon: false // disables the icon module
  }
}

More info here: https://pwa.nuxtjs.org/setup#configuration

To disable the manifest and meta you can do this:

pwa: {
  icon: false,
  manifest: false,
  meta: false
},