I meet some problems with my node code. So the thing is I want to create a local server on port 3000. After I link my html code which is
app.get("/",(req,res,next)=> {
res.sendfile(path.join(__dirname+'/src'+'/index.html'));
})
my chrome browser showed that :
Refused to apply style from 'http://localhost:3000/app.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
Plus, my CSS is not working. Here is the CSS tag in my HTML
<link href="./app.css" rel="stylesheet" type="text/css" />
Anyone knows how to fix it? Thank you so much! 😊