🧩 Plasmo Developers�PD
🧩 Plasmo Developers3y ago
4 replies
Lexa

[SOLVED] Unable to override manifest.json

I'm facing an issue with my extension where the content script is being executed on all pages of my browser instead of just the following site: https://app.hubspot.com/*
I tried modifying the manifest in the package.json file, but I'm getting this error message:
"At least one js or css file is required for 'content_scripts[2]'. Could not load manifest."
I understand that I need to specify the path to my content script file, but how can I do that when its name is not the same in the build version ?
This is my manifest from package.json file :
"manifest": {
    "host_permissions": [
      "https://app.hubspot.com/*"
    ],
    "default_locale": "en",
    "content_scripts": [
      {
        "matches": [
          "https://app.hubspot.com/*"
        ]
      }
    ]
  }
Screenshot_2023-06-08_at_16.00.05.png
Was this page helpful?