how to include image URL to css "style.css" in custom block?

Both these not work:

background-image: url("images/imagename.png");
background-image: url("./images/imagename.png");

Image was compiled with hash like imagename.asdasdasd.png but the path on frontend is bad (not aiming to plugin).

Gutenberg editor link (in administration - working):


Frontend link (not working):


Thanks for help

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.