I have an Express.js project wich looks like this:
- public
- images
- javascripts
- stylesheets
- routes
- index.js
- views
- authentication.html
- authentication.css
In routes/index.js I can display my html file like this:
app.get('/', function(req, res) {
res.sendFile(path.join(__dirname + '/../views/authentication.html'));
});
But the file is displayed without its style contained in authentication.css.
However, authentication.css is linked to authentication.html :
<head>
<meta charset="utf-8">
<link rel = "stylesheet" href = "authentication.css">
</head>
I tried to move my .css to the public/stylesheets folder and change the <link> tag to point to the new location but it didn't worked.
What am I supposed to do to apply my css files to the corresponding html files?