feat!: manifest.json should be generated by cli-plugin-pwa #2981
+58 −22
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
English description provided by Google Translate.
中文在下方
English description
manifest.json
should be generated bycli-plugin-pwa
and should not be copied directly from thepublic
folder.manifest.json
is a separate file that cannot be modified byvue.config.js
, and these values are very suitable for configuration withvue.config.js
. For example:name
,short_name
,start_url
,icons[].src
.Some attributes of
pwa
are the same or similar to those ofmanifest.json
. For example,pwa.themeColor
andmanifest.theme_color
,pwa.name
andmanifest.name
.中文说明
manifest.json
应该由cli-plugin-pwa
生成,不应该直接从public
文件夹复制。原本
manifest.json
是一个完全独立的文件,通过vue.config.js
无法修改某些值,而这些值又非常合适使用vue.config.js
配置。比如:name
,short_name
,start_url
,icons[].src
。在原有的
pwa
的属性中,有些属性与manifest.json
的属性相似或本应该是同一个。比如pwa.themeColor
和manifest.theme_color
,pwa.name
和manifest.name
。