pwa-module icon indicating copy to clipboard operation
pwa-module copied to clipboard

Disable manifest and meta

Open rinu opened this issue 3 years ago • 1 comments

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?

rinu avatar Apr 23 '21 14:04 rinu

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
},

ratherblue avatar May 18 '21 21:05 ratherblue