angular.min.js.map not found, what is it exactly?

前端 未结 2 1278
Happy的楠姐
Happy的楠姐 2020-11-30 16:49

When I load the page and check chrome console i find these errors: \"enter

what exactl

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 17:23

    Monkey is right, according to the link given by monkey

    Basically it's a way to map a combined/minified file back to an unbuilt state. When you build for production, along with minifying and combining your JavaScript files, you generate a source map which holds information about your original files. When you query a certain line and column number in your generated JavaScript you can do a lookup in the source map which returns the original location.

    I am not sure if it is angular's fault that no map files were generated. But you can turn off source map files by unchecking this option in chrome console setting

    enter image description here

提交回复
热议问题