Skip to content
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

Non-existing files in "web_accessible_resources" when using bundle-text #519

Open
david-tejada opened this issue Feb 18, 2025 · 0 comments

Comments

@david-tejada
Copy link
Owner

When using bundle-text to include a file as a text, entries to non-existing files are generated in the "web_accessible_resources" section of the manifest.

[Web Extension Packager] web_accessible_resources includes bundle-text assets, empty content_scripts.css field · Issue #8850 · parcel-bundler/parcel

An alternative solution would be to use new URL("...", import.meta.url) to include the file as a URL. But for whatever reason this doesn't work in a Safari content script, getting the error ... cannot be parsed as a URL..

For the time being I'm just going to manually delete the entries from the generated manifest to be able to publish the extension update but I will need to find a better solution for the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant