I didn’t manage to output the css stylesheet using express.static on Repl.
is it something to do with the platform?
app.get(’/’,function(req,res){
res.sendFile(__dirname + ‘/views/index.html’);
});
app.use(express.static(__dirname + ‘public’))
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36
.
Challenge: Serve Static Assets
Link to the challenge: