Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant