Source map debugging loads in Chrome

I generate source maps for javascript files while minimizing. Map files are referenced using the relative URL of the mini-JS files that are located next to the map files. Here is an example comment at the end app-e47a6637.js:

//# sourceMappingURL=app-e47a6637.js.map

Source map resolution works as expected in Firefox. However, Chrome does not download map files.

Additional Information:

  • The original JS cards are, of course, included in the settings.
  • I tried to install a proxy between Chrome and the server. Chrome doesn't even request map files.
  • I use gulp-sourcemapsto create map files.
  • I do not want to use the Chrome workspace feature. I just want it to display the original source files.

How to enable source maps in Chrome?

+4
source share

Source: https://habr.com/ru/post/1618923/


All Articles