Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Import asset in javascript #100

Description

@niklasp

I am sure this is not 100% theme related but maybe more of a webpack question. However, one has had this issue with tonik and can help?

I want to import an image in javascript. I try to do import cat from '../images/cat.png' but it fails, i tried many path combinations that could lead to the correct path but none worked. It leads to the following get request which lacks the theme path: GEThttp://localhost:3000/images/cat.png.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions