Skip to content

Get asset from js file #109

@francisneedham

Description

@francisneedham

Hi,
how can i refer an image asset from the asset/images folder in my js code ?

i can have it working in dev mode with
{require("../../images/my_image.svg")}

but no luck in production

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions