Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify source mapping object attribute 'sources' in map file #358

Open
SakshiMehra opened this issue Oct 12, 2015 · 1 comment
Open

Modify source mapping object attribute 'sources' in map file #358

SakshiMehra opened this issue Oct 12, 2015 · 1 comment

Comments

@SakshiMehra
Copy link

Is there any way of modifying the URL of included JS file path as 'sources' key of source map object in in map files?

@masonconsultancy
Copy link

I would also like to be able to do this. The reason I have is that my source files are held in the main project 'Site/Scripts' and the files are generated into wwwroot/scripts/js path. The sourceMappingURL is correct as it looks like this at the bottom of the js file

sourceMappingURL=filename.js.map

but the map files sources looks like this

{"version":3,"file":"filename.js","sources":["../../../Site/scripts/filename.js"]

This then causes problems when I'm debugging as the source files don't exist. I would like the map sources to be pointing to the js files in the wwwroot/scripts/js folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants