plasmo icon indicating copy to clipboard operation
plasmo copied to clipboard

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

Open kawamataryo opened this issue 1 year ago • 3 comments

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

  • https://github.com/kawamataryo/plasmo-tailwind-sample

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

  • [ ] I would like to fix this BUG via a PR

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct
  • [X] I checked the current issues for duplicate problems.

kawamataryo avatar Jan 26 '24 06:01 kawamataryo

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

flexchar avatar Jan 27 '24 18:01 flexchar

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

kawamataryo avatar Jan 27 '24 22:01 kawamataryo

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

flexchar avatar Jan 30 '24 10:01 flexchar