目前使用"@nuxtjs/pwa":"2.6.0“在灯塔分析上没有注册问题清单,服务人员也需要时间。特定灯塔错误失败:未获取清单。

如果需要,我也可以帮助编写代码!
我的nuxt.config.js
build: {
publicPath: cdn.com
},
modules: [
'@nuxtjs/axios',
'@nuxtjs/pwa'
],
manifest: {
name: 'name',
description: "Desc",
theme_color: '#607D8B',
short_name: 'shortname'
},使用Docker部署程序。将.nuxt/dist/client目录的内容上传到您的CDN (PublicPath Docs Nuxt)
发布于 2021-08-10 16:24:02
根据文档,您必须将清单对象包装到pwa:https://pwa.nuxtjs.org/manifest中
试试这个:
// Nuxt config
pwa: {
manifest: {
name: 'name',
description: "Desc",
theme_color: '#607D8B',
short_name: 'shortname'
}
}https://stackoverflow.com/questions/55650446
复制相似问题