After converting my index.html page to be served up by Express instead of Webstorm, I ran into an issue where all my scripts were now reporting 404 - Not Found
. Previously, they were working just fine.
I'm wondering if it's not advisable to serve a page from Express that contains multiple script tags. If it is acceptable to do so, then why are they suddenly showing as 404-Not found
, when they were working perfectly before?
EDIT: Here is the directory structure for reference:
project
--- src
--- js
main.js
--- css
index.html
app.js <-- all the express code
The Express code includes these lines:
app.use(express.static(__dirname + '/js'));
app.use(express.static(__dirname + '/css'));