U
U
ura2rist2019-11-17 20:44:27
Node.js
ura2rist, 2019-11-17 20:44:27

How to specify path to css in ejs?

5dd18660ee1ac574943243.pngThe top is the main folder, the bottom is the app folder.
In app/index.js I write

app.set(express.static(path.join(__dirname, 'views')));

add file in css
/style/style.css

Which is located in the views folder.
But still the style is not visible, the browser does not display it. How to be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2019-11-18
@HistoryART

Firstly , Secondly, connect like this

style/style.css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question