Bootstrap 3.1.1 - What is the .map extension file

2020-01-31 03:11发布

问题:

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.

回答1:

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.



回答2:

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