Suppose that there is a js file with source-map in subdirectory of a html file.
I lookup to the specification.
When the source mapping URL is not absolute, then it is relative to the generated code’s “source origin”. The source origin is determined by one of the following cases:
So if you use
<script src="js/myjs.js"> in index.html the js/myjs.js.map is used.