const app = require('express')();
app.get('/', function(req, res) {
res.sendFile(__dirname + "/" + "index.html");
});
<link rel="stylesheet" href="style.css">
I utilized the Node.js code above to send an HTML file. In order to style the HTML file properly, I also need to send a CSS file called style.css.
My inquiry is: How can I use the sendFile() method to send both the index.html and style.css files together and have them integrated on the client side seamlessly?