I have 2 files in this directory structure:
/js/app.js
/js/app.map
Then I load the script:
$.getScript("/js/app.js")
at the bottom of the app.js file in the source map definition:
//# sourceMappingURL=app.map
the map file is not loaded from the location /js/app.map
and instead is loaded from /app.map
Why is the source map file not being loaded from the correct location? How can this be fixed?