I am adding CSS and JS files to my node.js/express application using ejs templating engine. JS files are being applied but only the first included CSS file is being applied.
Adding via static method.
app.use(express.static(__dirname + '/public'));
In html
<link href="css/custom.css" rel="stylesheet" title="custom" type="text/css" />
via user1665963
No comments:
Post a Comment