PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.03k stars 346 forks source link

[BUG] generated manifest.json includes unnecessary permissions for web_accessible_resources. #879

Open kawamataryo opened 7 months ago

kawamataryo commented 7 months ago

What happened?

Thank you for developing a fantastic product.

I'm experiencing a bug while building CSUI using TailwindCSS. Unnecessary permissions for web_accessible_resources are being listed in the manifest.json.

For instance, content.xxxx.css is listed as a web_accessible_resource in the manifest.json, but this file is not present in the build results.

manifest.json: image

All built files: image

reproduction

Version

Latest

What OS are you seeing the problem on?

MacOSX

What browsers are you seeing the problem on?

Microsoft Edge

Relevant log output

No response

(OPTIONAL) Contribution

Code of Conduct

flexchar commented 7 months ago

I see your project has /context.tsx and /src/context.tsx. Pick either src approach or one without and see if that helps.

kawamataryo commented 7 months ago

@flexchar Thank you for your comment. I had created two content.tsx by mistake😅 However, the result was the same for either one...

flexchar commented 7 months ago

Ahh, that sucks. But at least it really doesn't harm anything having that entry in the manifest :)