Replies: 1 comment 2 replies
-
Hey @wss29, the way we usually do this is by embedding the image in css: .harry-botter {
background-image: url("./harry-botter.png")
} The path of the image file needs to be relative to the css file. Then you just need to add the class name to the rendered html element for it to render the image. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I create an extension and put an image in the style folder
now I want to load the image harry-botter.png in my component, so I create a variable to store it
but when I use it I can not get the image.
A simple method is to put harry-botter.png into the image folder and copy the image folder to lib/fronted.
but I want to ensure, could not I access harry-botter.png in my style folder if not use the image folder ?
Beta Was this translation helpful? Give feedback.
All reactions