I'm having trouble getting an image to display on my page using a pug template. Despite following the setup and files correctly, the image still isn't showing up.
Here is what I have:
index.js
app.use('/images', express.static(path.resolve(__dirname, '../dist/assets')))
template.pug
img.logo(src='/images/logo.png')
The logo.png file is located in the /dist/assets/ folder.
No errors are being displayed, but the image is not loading when viewed on the page. When checking the image link from the developers tool in a new tab, the image does appear. I'm unsure of what could be causing this issue. Any help would be greatly appreciated!