Reactjs Gatsby插件脱机,不缓存文件
我和盖茨比PWA一起工作。以下是使用lightbox进行审核时的错误列表 问题是我的服务人员没有工作或者没有缓存页面,我确信我在Reactjs Gatsby插件脱机,不缓存文件,reactjs,gatsby,progressive-web-apps,gatsby-plugin,Reactjs,Gatsby,Progressive Web Apps,Gatsby Plugin,我和盖茨比PWA一起工作。以下是使用lightbox进行审核时的错误列表 问题是我的服务人员没有工作或者没有缓存页面,我确信我在gatsby.config.js中的配置有问题。请帮忙 { resolve: `gatsby-plugin-manifest`, options: { name: `gatsby-starter-default`, short_name: `starter`, start_url: `/`,
gatsby.config.js
中的配置有问题。请帮忙
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
short_name: `starter`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `icon.png`, // This path is relative to the root of the site.
},
},
{
resolve: `gatsby-plugin-offline`,
options: {
workboxConfig: {
globPatterns: ["**/*.{js,jpg,png,html,css}"],
},
},
},
在灯塔报告中,单击上面的“PWA”-图标(圆圈)。 这会将您向下滚动到它的给定部分。 在那里你发现了一些通知,为什么PWA不能为这个页面建立 原因可能有很多,比如:
- 页面无法通过HTTPS访问://
- 没有规范标记
- 找不到清单的图标
- 清单有问题/错误
standalone
fordisplay
祝你好运