Bkg-img path on a scss file?

I am trying to add a background-image property in a selector (div) from the scss file, and I just can’t make it work.

Tried every possible path and doesn’t work.

My image is located in the assets/img/thumb.png

If I add the image from the HTML template, I use./assets/img/thumb.png and it works!

Bit not if I try to load from the scss file.

Please help!

It can be tricky, but you haven’t tried “every possible path”…


1 Like

thanks. Close the Ionic Studio, and reopened… then it worked. :slight_smile: