var app = require('express')();
app.get('/', function(req, res) {
res.sendFile(__dirname + "/" + "index.html");
});
<link rel="stylesheet" href="style.css">
I used the above Node.js code to send a html file. To get the html file formatted I need to send another css file (style.css).
My question is: How can I send both of these two files (index.html and style.css) using sendFile() and integrate them together in the client side?