Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@vue/cli-plugin-pwa impossible to see logs generated by workbox v6 in current config #7212

Open
Mounzer-InMind opened this issue Jun 24, 2022 · 0 comments

Comments

@Mounzer-InMind
Copy link

Mounzer-InMind commented Jun 24, 2022

What problem does this feature solve?

Scenario 1:

NODE_ENV = development
+ workbox v6 displays logs
- @vue/cli-plugin-pwa generates a noop service worker

Scenario 2:

NODE_ENV = production
- workbox v6 does not display logs
+ @vue/cli-plugin-pwa generates a service worker

Problem:

  • Unable to see the logs of a service worker for workbox v6 using @vue/cli-plugin-pwa

What does the proposed API look like?

Adding configuration flag to disable noop service worker in development mode:

Scenario 3: (new Scenario be available in this case)

NODE_ENV = development && disableNoopServiceWorker = true
+ workbox v6 displays logs
+ @vue/cli-plugin-pwa generates a service worker
pwa: {
        name : "test",
        //...
        disableNoopServiceWorker : true,
        workboxPluginMode : "InjectManifest",
        workboxOptions : {
            //...
        }
    }
@Mounzer-InMind Mounzer-InMind changed the title Add flag to PWA config to force generating a service worker in development mode @vue/cli-plugin-pwa impossible to see logs generated by workbox v6 in current configurations Jun 26, 2022
@Mounzer-InMind Mounzer-InMind changed the title @vue/cli-plugin-pwa impossible to see logs generated by workbox v6 in current configurations @vue/cli-plugin-pwa impossible to see logs generated by workbox v6 in current config Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant