Skip to content

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

@lucasrui

Description

@lucasrui

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions