question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to turn off PWA generation

See original GitHub issue

What problem does this feature solve?

If building for multiple targets, some of them might not support PWA. It would be great to have an option to turn off the functionality

What does the proposed API look like?

Currently the only way is to use a env var VUE_CLI_BUILD_TARGET different to app: https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-plugin-pwa/index.js#L4

This line could e.g. be changed to:

if (target && target !== 'app' || options.pwa.off === true) {
      return
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
zzx0106commented, Sep 3, 2019

config.plugins.delete(‘pwa’); config.plugins.delete(‘workbox’);

1reaction
LinusBorgcommented, Jun 17, 2019

I think this makes sense. I’ll do make a PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disabling Service Worker and Progressive Web App (PWA)
You can disable the Service Worker and the Progressive Web App (PWA) in Malibu if you are not interested in sharing your content...
Read more >
Progressive Web Apps - web.dev
Overview. In this collection, you'll learn what makes a Progressive Web App special, how they can affect your business, and how to build...
Read more >
ASP.NET Core Blazor Progressive Web Application (PWA)
Learn how to build a Blazor Progressive Web Application (PWA) that use modern browser features to behave like a desktop app.
Read more >
Progressive web apps (PWAs) - MDN Web Docs - Mozilla
Progressive Web Apps landing page and check list on web.dev · Progressive Web ... to power a "production-ready" service worker for your PWA...
Read more >
Getting Started With Progressive Web Apps (PWA)
The user will have the option to add our PWA to the home screen of a ... are needed we can make use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found