Wednesday 19 September 2018

CSS and JS not loading - node.js and Express

​404​my server side fileapp.use(express.static(__dirname + '/pub')); my client side file my project structure​structureI have tried with and without the forward slash in both the script and link tags (src="pub/js/index.js") but nothing is working.​It works if hard coded inside the home.hbs.​What do you think this is?

Submitted September 19, 2018 at 02:09PM by its_joao

No comments:

Post a Comment