PWA在Lighthouse中总是拿不到满分,哪里出问题了?

UI东耀 阅读 13

我最近在优化一个PWA项目,其他项都差不多90+,但“安装性”和“PWA优化”这两项老是丢分。明明我已经加了manifest.json和service worker,也通过了Chrome DevTools的PWA检测,可Lighthouse一跑还是说“无法安装”。

下面是我index.html里引用manifest的方式,是不是哪里写错了?

<link rel="manifest" href="/manifest.json" rel="external nofollow" >
<meta name="theme-color" content="#000000">
<link rel="apple-touch-icon" href="/icons/icon-192.png" rel="external nofollow" >
我来解答 赞 8 收藏
二维码
手机扫码查看
暂无解答

暂无解答