how to use custom stylesheets express node 1

how to use custom stylesheets express node

app.use(express.static(__dirname + '/public'));

Here is what the above code is Doing:
1. We’re telling Express to serve static files from the public directory.
2. We’re telling Express to use the style.css file in the public directory.

Similar Posts