Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 3.1.1 - What is the .map extension file used for?

Tags:

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.

like image 853
Seong Lee Avatar asked Feb 13 '14 22:02

Seong Lee


People also ask

What are .map files in bootstrap?

The main purpose of map file is used to link the css source code to less source code in the chrome dev tool. As we used to do . If we inspect the element in the chrome dev tool. you can see the source code of css. But if include the map file in the page with bootstrap css file.

What is the purpose of a .map file?

MAP file is for HTML image maps. An image map is formatted in HTML and creates click-able areas over a provided image. More generically, the . MAP extension can be used to denote any file type that indicates relative offsets from a starting point.

What is .map file CSS?

CSS map file is a JSON format file that connects the CSS file to its source files, further, it is often written in preprocessors (e.g., Less, Sass, Stylus, etc.), allowing for live debugging of the source files from the web browser.


1 Answers

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.

like image 64
Mikko Ohtamaa Avatar answered Oct 20 '22 23:10

Mikko Ohtamaa