Bootstrap 3.1.1 - What is the .map extension file

2020-01-31 03:06发布

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?

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.

2条回答
Deceive 欺骗
2楼-- · 2020-01-31 03:14

It is source map for Firefox and Chrome debuggers.

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

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.

查看更多
ゆ 、 Hurt°
3楼-- · 2020-01-31 03:20

you can download it and then place it at the same directory of bootstrap.css file

https://github.com/twbs/bootstrap/blob/master/dist/css/bootstrap.css.map

查看更多
登录 后发表回答