Skip to content

Can resources in the developer server be accessed from the visual.ts? #93

@dfgwebxqu

Description

@dfgwebxqu

What I am looking to achieve is roughly:
1.Import resources in the import statement
import earth from '../assets/earth.png'
2.Then use it in the code

let img = new Image(); 
img.src=earth 

In this case, print value of earth is 'assets/earth.png', but my img cannot correctly read the path.

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