如何禁止Chrome DevTools警告:"DevTools无法加载SourceMap:无法为...加载内容" [英] How to suppress Chrome DevTools warning: 'DevTools failed to load SourceMap: Could not load content for...'

查看:767
本文介绍了如何禁止Chrome DevTools警告:"DevTools无法加载SourceMap:无法为...加载内容"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

上下文

对于我的许多js文件,我都没有源映射.使用devtools控制台时,它会污染有关警告.我不想放弃所有警告,但那些警告对我而言并没有真正的作用

For many of my js files I have no source map. When using the devtools console it pollutes the warnings about that. I would not like to turn of all warnings, but those are not really useful for me

问题

如何禁止Chrome DevTools警告:"DevTools无法加载SourceMap:无法为...加载内容"?

How to suppress Chrome DevTools warning: 'DevTools failed to load SourceMap: Could not load content for...'?

推荐答案

在DevTools(F12)中->设置(F1):

In DevTools (F12) -> Settings (F1) :

禁用两者启用JS源映射"和启用CSS源映射"在首选项->"中来源"

Disable both "enable JS source maps" and "enable CSS source maps" in "Preferences -> Sources"

这篇关于如何禁止Chrome DevTools警告:"DevTools无法加载SourceMap:无法为...加载内容"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆