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

Import asset in javascript #100

Open
niklasp opened this issue Feb 1, 2021 · 0 comments
Open

Import asset in javascript #100

niklasp opened this issue Feb 1, 2021 · 0 comments

Comments

@niklasp
Copy link

niklasp commented Feb 1, 2021

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant