I am new to NodeJS and am trying to learn TypeScript.
While following Microsoft's TypeScript-Node-Starter, I have a question about how the app is working.
What I understand:
- All
tsfiles undersrcare compiled intojsfiles underdist. - This is the app's starting point.
- The static files are served from the folder
src/public. - In this html (or pug) file, the page would try to load
main.jsscript from the foldersrc/public/js.
Now my question is: how does the html know to load main.js from dist/public/js rather than src/public/js? Am I missing something?