I have a Vue Cli 3 project with @vue/cli-plugin-pwa
plugin installed and configured (in vue.config.js
), but when I run vue-cli-service build --modern
no manifest.json
is generated based on my config.
I'm expecting to see a manifest.json
that would contain, at the very least, the paths of the icons I specified. Maybe also the settings that I put in the vue.config.js
.
Am I doing something wrong or maybe my expectation of how the plugin should work doesn't match the actual behavior?
How am I supposed to make Vue generate my manifest.json
?
vue create <app-name>
? – CrichtonregisterServiceWorker.js
file should be created. Do you have it? – CrichtonregisterServiceWorker.js
. I also checked the Vue UI, and it states that PWA component is enabled, which means that the project supports PWA. So, why Vue isn't generating the manifest.json? – Bengalpublic
folder. Did you check there? – Crichtonmanifest.json
in the public folder of the newly generated project. But then I edited thepwa
section of thevue.config.js
file and changed the name of the app, and ranyarn vue build
. The result (in thedist
folder) contained amanifest.json
file, but it had the "old" project name instead of the one that I typed in thevue.config.js
. Which means that the build process just blindly copies whatever there is in thepublic
folder (including themanifest.json
file) instead of generating it. – Bengalmanifest.json
. I do have the service worker soPWA
was enabled. – Macknair