I'm running a node js application (without express) and encountering an issue with the background image url in my .jade file.
extends ../node_modules/pug-bootstrap/_bootstrap
block body
style
include style.css
In my style.css file, I have the following code:
body{
background: #222 url('skyscrapers.jpg') center center no-repeat;
background-size: cover;
color: white;
height: 100%;
text-align: center;
align-items: center;
}
Although the background color is displaying correctly, the image doesn't seem to load. Strangely, when I test the same code in a simple HTML file, everything works as expected. The image file locations are also correct.