{ "manifest_version": 3, "name": "计划设计插件", "version": "1.0", "description": "这是一个计划设计插件", "icons": { "16": "icon.png", "48": "icon.png", "128": "icon.png" }, "action": { "default_popup": "popup.html", "default_icon": { "16": "icon.png", "48": "icon.png" } }, "permissions": [ "scripting", "host:/*/*" ], "background": { "service_worker": "background.js" }, "host_permissions": [ "*://*/*" ], "web_accessible_resources": [ { "resources": [ { "file": "./content2.js", "matches": ["http://*/*", "https://*/*"] } ], "matches": ["http://*/*", "https://*/*"] } ] }报错打包扩展程序错误 Error at key 'web_accessible_resources'. Parsing array failed at index 0: Error at key 'resources': Parsing array failed at index 0: expected string, got dictionary,请帮我修改
时间: 2023-08-07 21:11:51 浏览: 289
Chrome插件开发系列一:弹窗终结者开发实战
{
"manifest_version": 3,
"name": "计划设计插件",
"version": "1.0",
"description": "这是一个计划设计插件",
"icons": {
"16": "icon.png",
"48": "icon.png",
"128": "icon.png"
},
"action": {
"default_popup": "popup.html",
"default_icon": {
"16": "icon.png",
"48": "icon.png"
}
},
"permissions": [
"scripting",
"host:/*/*"
],
"background": {
"service_worker": "background.js"
},
"host_permissions": [
"*://*/*"
],
"web_accessible_resources": [
{
"resources": ["./content2.js"],
"matches": ["http://*/*", "https://*/*"]
}
]
}
阅读全文