Hi Seb,
my app is not able to serve the static files such as style.css and main.js in the browser.
I've already included in my index.js file
app.use('/', express.static(path.join(__dirname, 'public')))
but cant seem to fix it.
Even if the browser is able to get style.css, it shows up empty in the Dev tool > Sources.
Code review needed @cbas
Hi Seb, my app is not able to serve the static files such as style.css and main.js in the browser. I've already included in my index.js file
app.use('/', express.static(path.join(__dirname, 'public')))
but cant seem to fix it.Even if the browser is able to get style.css, it shows up empty in the Dev tool > Sources.
Is there another way I can get over this?