Skip to content

New "pwalocalserve" mode to inject manifest and get service worker debugging #6457

Open
@kb-coder

Description

@kb-coder

What problem does this feature solve?

Workbox will only add debugging when the NodeEnv is development (see GoogleChrome/workbox#1619 (comment)), but the cli-plugin-pwa does not give us a way to run the injected version of the pwa in a way that we can get debugging info because it only injects the manifest when NodeEnv is production (see https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-plugin-pwa/index.js).

It would be helpful to support the following use cases:

  1. Development mode with no manifest injection
  2. Development mode (new "pwalocalserve") with manifest injection and debugging
  3. Production mode manifest injection with no debugging.

Can we get a "pwalocalserve" that builds the PWA with the injected manifest and debugging so we can troubleshoot issues with custom service worker code?

What does the proposed API look like?

pwa-build": "vue-cli-service build --mode pwalocalserve",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions