【发布时间】:2019-04-22 09:50:51
【问题描述】:
在我的 manifest.json 中,我有以下代码
"icons": [
{
"src": "/static/img/icons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/static/img/icons/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
当我打开浏览器时,我的控制台中出现这些错误
Error while trying to use the following icon from the Manifest: http://localhost:8080/static/img/icons/android-chrome-192x192.png (Resource size is not correct - typo in the Manifest?)
我仔细检查了文件夹中的图标名称是否正确。所以图标名称不应该是这样。当我单击该链接时,图像已显示。可能是什么错误? 我的静态文件夹 ---
【问题讨论】:
-
您的
static文件夹在哪里?在根文件夹内? -
问题已编辑。你可以看到我的静态文件夹。
-
没有答案?
标签: vue.js manifest.json