Skip to content

Importing images? #138

@arjandha

Description

@arjandha

This may be a simple question but the npm run build command does not seem to grab the images I've added into a new directory called src/images. As a result, a broken image link is displayed.

I see in the webpack configs a loader for .jpegs, .pngs, and .gifs.

I assume that the react way is to add these in a component via an import image from '[location name here]' invocation at the top of the component, but that doesn't seem to work either...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions