Bootstrap 3.1.1 - .map 扩展文件的用途是什么? [英] Bootstrap 3.1.1 - What is the .map extension file used for?

查看:29
本文介绍了Bootstrap 3.1.1 - .map 扩展文件的用途是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用最新的 Bootstrap 版本升级我正在开发的应用程序,但我正在努力弄清楚添加 bootstrap.css.map 的目的是什么?

I need to upgrade an application I'm working on with the latest Bootstrap version but I'm struggling to figure out what an addition of bootstrap.css.map is for?

是否需要它们才能使 css 正常工作?

Do I need to have them to have the css work properly?

在写这篇文章之前我做了一些搜索,但由于它相对较新,对此,我没有找到任何切实的解释.

I did some search before writing this but since it's relatively new, I haven't come across any tangible explanations to this.

推荐答案

它是 Firefox 和 Chrome 调试器的源映射.

It is source map for Firefox and Chrome debuggers.

http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/

因为源代码被缩小/捆绑,所以行号不引用原始文件.源映射协议修复了这个问题,允许 Web 调试器引用生成 CSS 的原始上下文.

Because the source code is minified/bundled the line numbers do not refer to the orignal files. Source map protocol fixes this, allowing the web debuggers to refer to the original context from where the CSS was generated.

这篇关于Bootstrap 3.1.1 - .map 扩展文件的用途是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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