I'm struggling to get my handlebars file to access my .css file. Here's how my current folder structure looks:
root
public
css
base.css (css file)
img
ping.png (image file)
To make the /public/img and /public/css folders static, I'm using this code:
['css', 'img'].forEach(folder => app.use(express.static(__dirname + '/../public/' + folder)));
And here is how I reference my .css file from handlebars:
<link rel="stylesheet" href="/base.css" type="text/css" media="screen" title="no title" charset="utf-8">
I've tried some solutions from stackoverflow but they don't seem to work for my project.
Could there be a mistake I'm missing here? Any help would be appreciated. Thank you.