Upgrade to v0.81 not working as expected
I'm trying to upgrade to v0.81, but there is something wrong going on. It says
Failed to resolve '.plasmo/chrome-mv3.plasmo.manifest.json'
, but I can see the file in the .plasmo
folder. Here's the generated file
{
"icons": {
"16": "./gen-assets/icon16.plasmo.png",
"32": "./gen-assets/icon32.plasmo.png",
"48": "./gen-assets/icon48.plasmo.png",
"64": "./gen-assets/icon64.plasmo.png",
"128": "./gen-assets/icon128.plasmo.png"
},
"manifest_version": 3,
"action": {
"default_icon": {
"16": "./gen-assets/icon16.plasmo.png",
"32": "./gen-assets/icon32.plasmo.png",
"48": "./gen-assets/icon48.plasmo.png",
"64": "./gen-assets/icon64.plasmo.png",
"128": "./gen-assets/icon128.plasmo.png"
}
},
"version": "2.2.1",
"author": "example",
"name": "Example Extension",
"description": "Example Extension.",
"background": {
"service_worker": "./static/background/index.ts"
},
"options_ui": {
"page": "./options.html",
"open_in_tab": true
},
"permissions": [
"storage",
"tabs"
],
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": [
"../src/contents/configs/index.ts"
]
},
{
"matches": [
"https://mysite.com/*"
],
"js": [
"static/contents/default.tsx"
]
},
{
"matches": [
"https://www.second-site.com/*"
],
"js": [
"static/contents/second-site.tsx"
]
}
],
"host_permissions": [
"*://fonts.googleapis.com/*"
],
"content_security_policy": {
"extension_pages": "style-src 'self' fonts.cdnfonts.com fonts.googleapis.com;font-src 'self' fonts.gstatic.com fonts.cdnfonts.com;object-src 'self';connect-src ws:;default-src 'self'"
}
}
{
"icons": {
"16": "./gen-assets/icon16.plasmo.png",
"32": "./gen-assets/icon32.plasmo.png",
"48": "./gen-assets/icon48.plasmo.png",
"64": "./gen-assets/icon64.plasmo.png",
"128": "./gen-assets/icon128.plasmo.png"
},
"manifest_version": 3,
"action": {
"default_icon": {
"16": "./gen-assets/icon16.plasmo.png",
"32": "./gen-assets/icon32.plasmo.png",
"48": "./gen-assets/icon48.plasmo.png",
"64": "./gen-assets/icon64.plasmo.png",
"128": "./gen-assets/icon128.plasmo.png"
}
},
"version": "2.2.1",
"author": "example",
"name": "Example Extension",
"description": "Example Extension.",
"background": {
"service_worker": "./static/background/index.ts"
},
"options_ui": {
"page": "./options.html",
"open_in_tab": true
},
"permissions": [
"storage",
"tabs"
],
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": [
"../src/contents/configs/index.ts"
]
},
{
"matches": [
"https://mysite.com/*"
],
"js": [
"static/contents/default.tsx"
]
},
{
"matches": [
"https://www.second-site.com/*"
],
"js": [
"static/contents/second-site.tsx"
]
}
],
"host_permissions": [
"*://fonts.googleapis.com/*"
],
"content_security_policy": {
"extension_pages": "style-src 'self' fonts.cdnfonts.com fonts.googleapis.com;font-src 'self' fonts.gstatic.com fonts.cdnfonts.com;object-src 'self';connect-src ws:;default-src 'self'"
}
}
0 Replies