I am creating a website and I have problems loading the CSS stylesheet in my HTML document when I am working in localhost:8080
and I do not understand why.
The structure of my repertoire is as follows:
.
|-- node_modules
|-- ressources
| |-- css
| | '-- oanstyle.css
| '-- images
| |-- img1.jpg
| |-- img2.jpg
| '-- etc
|-- app.js
|-- index.html
|-- package-lock.json
'-- package.json
I use app.listen(8080)
and I do not load the style sheet or the images I have in the folder. I've tried:
<link rel="stylesheet" type="text/css" href="./ressources/css/oanstyle.css">
I've also tried:
<link rel="stylesheet" type="text/css" href="/ressources/css/oanstyle.css">
Y:
<link rel="stylesheet" type="text/css" href="http://localhost:8080//ressources/css/oanstyle.css">
For the images I have tried the same. Can someone help me?