问题
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?
回答1:
I had the same issue. I ran a production build: yarn build or npm build and found the manifest.json file in the dist folder.
回答2:
vue add @vue/pwa
vue create <app-name>
manifest.json is located in public folder, not in src
来源:https://stackoverflow.com/questions/53463944/vue-cli-3-project-wont-generate-manifest-json-pwa