Vue Cli 3 project won't generate manifest.json (PWA)

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-27 08:47:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!