How do I generate a chrome-specific manifest with a single code?

Hi, I make a browser extension by Plasmo and published it for Chrome, Edge and FireFox. I have created a Chrome-only feature that uses Oauth2 and web api to access Google data. This is working fine, but only the manifest.json generation is not working. When I create a key and oauth2 item for chrome in the manifest item of package.json, it is also included in the build for firefox. Is there any way to include the oauth2 and key only in the build for chrome?
2 Replies
Arcane
Arcane2w ago
@udai_ has reached level 1. GG!
BertBert
BertBert6d ago
Not an ideal solution, but if its only the manifest file, i guess you could change the firefox/edge version after building, even though its somewhat cursed

Did you find this page helpful?