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

Massive updates to properly add support to the public/ folder #192

Merged
merged 36 commits into from
Sep 20, 2024

Conversation

cezaraugusto
Copy link
Member

@cezaraugusto cezaraugusto commented Sep 19, 2024

The public/ folder was wrongly implemented since the very first version. This PR changes it.

The goal of the public/ folder in Extension.js is to provide a predictable output path of static assets to users. If I add a /public/myimage.png file, it is expected that the file is served at /myimage.png, so a call to chrome.runtime.getURL('myimage.png') should correctly point to my image.

Before this change, the public path is served at /public/.

The landing of this change puts us in beta release.

Copy link

pkg-pr-new bot commented Sep 19, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/extension-js/extension.js/extension@192
pnpm add https://pkg.pr.new/extension-js/extension.js/extension-create@192
pnpm add https://pkg.pr.new/extension-js/extension.js/extension-develop@192

commit: 83cae5b

We parse the manifest to remove the browser-specific fields,
and at some point we will require a configuration that is
browser-specific and we are not aware, raising a bug.

This patch removes all manifest requires possible, and patch
with the browser-specific fields method to remove them as needed
Copy link

codecov bot commented Sep 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

see 4 files with indirect coverage changes

@cezaraugusto cezaraugusto changed the title Public Massive updates to properly add support to the public/ folder Sep 20, 2024
@cezaraugusto cezaraugusto self-assigned this Sep 20, 2024
@cezaraugusto cezaraugusto marked this pull request as ready for review September 20, 2024 16:52
@cezaraugusto cezaraugusto merged commit b169d7e into main Sep 20, 2024
15 checks passed
@cezaraugusto cezaraugusto deleted the public branch September 20, 2024 17:01
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

Successfully merging this pull request may close these issues.

1 participant