Skip to content

Adding images to /dist #139

@lorenzoid

Description

@lorenzoid

Prefacing this issue by saying that this is an awesome repo. Everything save for this issue has been relatively straightforward to come to grips with and understand! Cheers! @coryhouse!!

My issue is that I have a directory in src called images (src/images) which contain all my image assets. When I try to access these via the npm run start command, it works fine. I simply access the file like so:

<img className="auth-logo" src="images/joyglobal_logo.png" />

The issue is when I run npm run build... This path src/images does not seem to be accessed by the build task and dropped into the dist directory.

Any guidance would be tremendous!

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