Bootstrap 尝试加载地图文件.如何禁用它?我需要这样做吗? [英] Bootstrap trying to load map file. How to disable it? Do I need to do it?

查看:26
本文介绍了Bootstrap 尝试加载地图文件.如何禁用它?我需要这样做吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在玩 bootsrap3.我从源代码编译它并将 distr js 和 css 包含到我的项目中.问题是,我在 GH 开发工具中看到,它正在尝试获取 .map.css 文件.它为什么要这样做?如何禁用它?我需要禁用它吗?为了不在开发工具中显示错误标记,我添加了该地图文件,之后所有样式都按照它们在较少文件中定义的方式显示,这对我没有多大帮助.

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 .map.css file. Why does it want to do so? How to disable it? Do I need to disable it? To not to have an error mark in dev tools, I added that map file, after which all styles are displayed as they defined in less files, which doesn't help me much.

推荐答案

bootstrap.css 中删除行 /*# sourceMappingURL=bootstrap.css.map */

这篇关于Bootstrap 尝试加载地图文件.如何禁用它?我需要这样做吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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