The background not being loaded. Inspector shows an error Failed to load resource: the server responded with a status of 404 (Not Found). The image is in the folder.
Changing to a different SVG is fine, although works with only one SVG.
Seeing that, I tried resaving the bg.svg in Illustrator – didn’t work. Tried creating a new SVG, a simple shape, in Illustrator – didn’t work.
Tried a WebP format for the same shape (copy/paste from Illustrator to Photoshop) – didn’t work.
Loading a PNG works fine.
None of these files I’m trying to load are in the resources/images folder, not sure if this is relevant.
Problem is local, haven’t tried to push to Netlify yet.
If it helps, everything else is working fine, images etc, although this the first time I’m trying to set bg via style sheet. As I said though, another svg, logo.svg, is loading fine including as a background.
Placing the image is static/images worked, thank you.
Question though: why other images in assets/images get piped? And what do I need to do for each new image going into the assets/images folder? I was assuming everything in this folder gets piped.
Once captured, you can pass it through various transformation pipelines, then invoke its Permalink, RelPermalink, or Publish method to publish to the public directory.
I suggest spending some time reading the documentation.
It could be that you have a copy of images in static/images folder which is allowing them to be referred without being piped. Any resource from assets folder needs to be piped, as mentioned by previous responders.