I've encountered an issue while working on a TypeScript project with ParcelJs. After building the project and opening it on the ParcelJs server at http://localhost:1234/
, everything functions perfectly. However, when I try to access the project outside of this server, all my files are not found due to an extra /
at the beginning of each file link.
For example, ParcelJs generates links in my index.html like this which do not work:
<script src="/src.4254afb6.js"></script>
But removing the /
makes everything work as expected:
<script src="src.4254afb6.js"></script>
How can I resolve this issue?