-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[PWA] What's the actual use-case for the pwa-plugin? #3006
Comments
The section is to set options for the workbox plugin (amongst other things), which does handle the whole ServiceWorker setup, which is really the meat of any PWA. The other options are used to define values to be set on meta tags in index.html by a small webpack plugin that the cli-plugin-pwa adds to the webpack config. While a few of those values (most prominently the |
Check my other open issue (#3007). If that get's implemented it would totally make sense to generate the Also have a look at how https://github.com/arthurbergmz/webpack-pwa-manifest handles the images stuff, it's a very clean design. |
@alexandernst thanks for asking and @LinusBorg thanks for clarifying. The fact that the PWA plugin has all these settings that map so nicely to a PWA manifest file, AND that it (or something else) auto-injects a link for manifest.json into the index.html template, led me to believe that:
I've finally realised that none of these things are true, lol. |
Docs could probably be improved, but that's generally on the roadmap. I'll close this issue since it's not a bug. If you want to open a feature request to handle manifest.json in a different way, open a new issue for it and describe what it should do, exactly. PRs would also be welcome. |
@LinusBorg instead of closing this issue, can we just convert it to a feature request? It's already well described. |
Implemented in #2981 |
Version
3.1.1
Reproduction link
Node and OS info
Node 10.x / yarn 1.7.0 / Alpine 3.8
Steps to reproduce
I spent some time tweaking the
pwa
section in myvue.config.js
. Then I ranvue build
, expecting the PWA plugin to generate amanifest.json
, but I was surprised to see my old (and empty)manifest.json
from thepublic
folder just copied to thedist
folder.Then I spent some more time looking at documentation and issues in both vue-cli and @vue/pwa repos, and I couldn't find a real reason about what's the exact purpose of the
pwa
section in thevue.config.js
file.If the
manifest.json
is not generated from the content of thepwa
section in myvue.config.js
, then what's the point in having that section at all?What is expected?
vue build
should create amanifest.json
file based on the config invue.config.js
What is actually happening?
Nothing.
The text was updated successfully, but these errors were encountered: