Skip to content

[BUG]: _favicon/* is removed from web_accessible_resources #10170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
vitalets opened this issue May 26, 2025 · 0 comments
Open

[BUG]: _favicon/* is removed from web_accessible_resources #10170

vitalets opened this issue May 26, 2025 · 0 comments

Comments

@vitalets
Copy link

🐛 bug report

Per extensions docs I can define _favicon/* in web_accessible_resources to make favicons accessible on the webpages.
Currently Parcel removes _favicon/* from web_accessible_resources and favicons can't be displayed.

🎛 Configuration (.babelrc, package.json, cli command)

manifest.json:

  "web_accessible_resources": [
    {
      "resources": ["_favicon/*"],
      "matches": ["<all_urls>"]
    }
  ]

command:

parcel build manifest.json --config @parcel/config-webextension

🤔 Expected Behavior

The output manifest contains _favicon/* entry:

  "web_accessible_resources": [
    {
      "resources": ["_favicon/*"],
      "matches": ["<all_urls>"]
    }
  ]

😯 Current Behavior

The output manifest has resources as empty array:

  "web_accessible_resources": [
    {
      "resources": [],
      "matches": ["<all_urls>"]
    }
  ]

💁 Possible Solution

Provide custom transformer for manifest.json and manually add _favicon/* to web_accessible_resources.

🔦 Context

💻 Code Sample

🌍 Your Environment

"parcel": "^2.14.4",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants