The browser must load by style.cssitself, so you can use this as a route:
app.get('/style.css', function(req, res) {
res.sendFile(__dirname + "/" + "style.css");
});
, , . Express :
https://expressjs.com/en/starter/static-files.html
const express = require("express");
const app = express();
app.use(express.static(__dirname));
, index.html , , , .
index.html, css, , .. , , public :
app.use(express.static("public"));
, Express index.html , app.get("/".