How can I take a minified javascript stack trace and run it against a source map to get the proper error?

后端 未结 5 1388
遇见更好的自我
遇见更好的自我 2020-12-13 17:46

On our production server, I have minified javascript published and I\'m not including a map file with it, because I don\'t want the user to be able to understand what\'s hap

5条回答
  •  有刺的猬
    2020-12-13 18:36

    Append comment directive for the JS running in the page.

    //# sourceMappingURL=/path/to/your/sourcemap.map

    In firefox (not sure about chrome) to tell the Debugger to use source maps if they are available, click the "Debugger settings" button and select "Show original sources" from the list of settings that pops up:

提交回复
热议问题