Skip to content

The static resource png image path is not loaded correctly after compilation and packaging. #167

@Feiyudevs

Description

@Feiyudevs

Thank you for your contribution. I like this project very much. Please ask the teacher to help me solve my doubts.

Everything is normal in dev mode. When compiled, the static resource png/jpg images are also packaged in the dist path, but the path is wrong when opening the images in the PR extension. I used the latest version to create a new project test, and the code is as follows.

Compiled path GET file:///C:/assets/logo-P4SdCOwu.png net::ERR_FILE_NOT_FOUND

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions