Vue Cli 3 项目不会生成 manifest.json (PWA) [英] Vue Cli 3 project won't generate manifest.json (PWA)
问题描述
我有一个安装并配置了 @vue/cli-plugin-pwa
插件的 Vue Cli 3 项目(在 vue.config.js
中),但是当我运行时vue-cli-service build --modern
没有根据我的配置生成 manifest.json
.
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.
我期待看到一个 manifest.json
,它至少包含我指定的图标的路径.也许还有我放在 vue.config.js
中的设置.
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?
我应该如何让 Vue 生成我的 manifest.json
?
How am I supposed to make Vue generate my manifest.json
?
推荐答案
我遇到了同样的问题.我运行了一个生产版本:yarn build
或 npm build
并在 dist
文件夹中找到了 manifest.json
文件.
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.
这篇关于Vue Cli 3 项目不会生成 manifest.json (PWA)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!