Bootstrap trying to load map file. How to disable it? Do I need to do it?

前端 未结 13 1138
情书的邮戳
情书的邮戳 2020-12-04 09:59

I\'m recently playing with bootsrap3. I compiled it from sources and included distr js and css to my project. The thing is, I see in GH dev tools, that it\'s trying to get .

13条回答
  •  Happy的楠姐
    2020-12-04 10:41

    .map files allow a browser to download a full version of the minified JS. It is really for debugging purposes.

    In effect, the .map missing isn't a problem. You only know it is missing, as the browser has had its Developer tools opened, detected a minified file and is just informing you that the JS debugging won't be as good as it could be.

    This is why libraries like jQuery have the full, the minified and the map file too.

    See this article for a full explanation of .map files:

提交回复
热议问题