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

[BUG] web_accessible_resources doesn't build with env variables #1218

Open
2 of 3 tasks
lucasrui opened this issue Mar 5, 2025 · 0 comments
Open
2 of 3 tasks

[BUG] web_accessible_resources doesn't build with env variables #1218

lucasrui opened this issue Mar 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@lucasrui
Copy link

lucasrui commented Mar 5, 2025

What happened?

this is my package.json
"web_accessible_resources": [ { "resources": [ "icon*", "assets/$PLASMO_PUBLIC_APP/*" ], "matches": [ "<all_urls>" ] } ]
there is a env variable called PLASMO_PUBLIC_APP.
the manifest.json is correct like this:
"web_accessible_resources":[{"resources":["icon*","assets/xiangji/*"],"matches":["<all_urls>"]}]
but the assets directory is missing in the build dist

Image

fyi, if I'm not using variable, the assets works

Version

Latest

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

No response

Relevant log output

the log is normal like before

(OPTIONAL) Contribution

  • I would like to fix this BUG via a PR

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@lucasrui lucasrui added the bug Something isn't working label Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant