microsoft / powerbi-visuals-webpack-plugin

powerbi-visuals-webpack-plugin
MIT License
33 stars 29 forks source link

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

Open wslrj123 opened 8 months ago

wslrj123 commented 8 months ago

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.