[BUG] Possible Bug: Incorrect CSS Hash in web_accessible_resources
When Building for Edge MV3
#1215
Open
2 of 3 tasks
Labels
bug
Something isn't working
What happened?
Today, I attempted to publish a Chrome Web Store extension to Microsoft Edge and encountered a potential bug.
I built the extension using:
After uploading the ZIP file to Microsoft Partner Center, the submission failed with the following error:
Upon inspecting the generated
manifest.json
, I found that theweb_accessible_resources
field referenced a non-existent CSS file:However, the actual file in the ZIP archive was
toc.fa35df8d.css
.The hash in the filename does not match the reference in
manifest.json
.This issue also occurs when building for chrome-mv3, but Chrome Web Store does not flag it as an error during upload.
I later discovered that this issue occurs in both
plasmo dev
andplasmo build
, regardless of the target platform.My extension repository is: github-issue-toc. You can clone it and run:
Then inspect the generated
build/edge-mv3-prod/manifest.json
.Compare the
content_scripts
andweb_accessible_resources
fields—the
content_scripts
field references a validtoc.<hash>.css
, but the corresponding entry inweb_accessible_resources
points to a non-existent file.Environment:
Please take a look, thanks!
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome, Microsoft Edge
Relevant log output
(OPTIONAL) Contribution
Code of Conduct
The text was updated successfully, but these errors were encountered: