Links to the sourcemaps workspace from its root
I just fixed this problem by creating the source files so that they link to the source files (less in my case) relative to the root of my workspace. If you are not using the dev tools workspace, this works because they can find the source files relative to the directory where sourcemap is located. If you don’t link to the workspace, this breaks because Chrome points to the link from the root of the workspace. Fixed bug for source JS maps.
MyWorkspace (node project root) > bower_components > node_modules > routes > wwwroot (public static root) > app (AngularJS client) > assets > css > app.css > maps > app.css.map > less > bootstrap (less source) > app.less > app.js > package.json
So, for me, sourcemap "sources": array should reference my smaller source files as follows:
app.css.map
{ "version":3, "sources": [ "/wwwroot/assets/less/app.less", "/wwwroot/assets/less/...."....
In addition to this, I had to install node so that when I started in dev mode it would provide additional routes for / wwwroot / as well as / node_modules / so that it could correctly map the routes to my workspace.
I use gulp -less-sourcemaps to create CSS source codes, and my step less than assembly looks (in case someone struggles with gulp) -
.pipe(less({ sourceMap: { sourceMapRootpath: '/wwwroot/assets/less' }}))
source share