Import images from JavaScript

Person in labcoat walking left


Most web projects need images of some form. Bringing assets like images into the JavaScript module graph is beneficial because it allows their usage to be tracked the same way module dependencies are tracked. The standard representation of images imported from JavaScript is the URL: either a URL reference to an image asset, or a data URL containing the encoded image inline.

Use the (+) card below & tell us if we missed a capability!

Plant with tall leafs and vines in a pot

Questions or Concerns?

We want to hear from you, let us know how to make this better. Open up a GitHub issue and we’ll track it there. Thanks!

Open a GitHub Issue