solidjs / templates

Vite + solid templates
446 stars 117 forks source link

Cannot apply background image to body element #141

Open g0dzcsgo opened 10 months ago

g0dzcsgo commented 10 months ago

Describe the bug

I just downloaded the newest boilerplate provided on your guys website, and now in the newer version I cannot for some reason apply a image to the body element in the index.css. It will just remain white-screen.

Your Example Website or App

https://stackblitz.com/edit/solidjs-templates-5unsdg?file=src%2Findex.css

Steps to Reproduce the Bug or Issue

It works in the stackblitz, but when I use the "npx degit solidjs/templates/ts nui " install command on my local machine and try to use the background-image property on the body selector inside the index.css it will not work. The background-color property works fine.

(Yes I tried it on a fresh boilerplate, same result)

Expected behavior

I expect it to change the background so I don't get blinded by a flashbang...

Screenshots or Videos

image

Platform

Additional context

No response

ryansolid commented 10 months ago

Hmm.. the chance that this is Solid specific given it works in Stackblitz and is in CSS is fairly unlikely. It points at a difference in environment which is more likely related to the local computer/resource being fetched or on the bundling side. I will move this to the templates repo.