Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what are the .map files used for in Bootstrap 3.x?

There are two files included in the CSS folder with .map file extensions. They are:

bootstrap-theme.css.map bootstrap.css.map 

They appear to be minified files but I don't know what they are for.

like image 551
wetjosh Avatar asked Feb 01 '14 22:02

wetjosh


People also ask

What are .map files for?

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 opens a .map file?

MAP files can be edited using the Furcadia Dream Editor (DreamEd.exe), which is included with the Furcadia installation. Custom maps can be used for playing with others online.

What is map file in embedded system?

The map file is generated by the linker and the format of the file will be different for each linker. Your best bet is the documentation for the linker itself - there is unlikely to be a "general" tutorial. However for the most part a map file is simply a table of symbols, their location and their size.

What are .map files JavaScript?

The . map files are for JavaScript and CSS (and now TypeScript too) files that have been minified. They are called source maps. When you minify a file, like the angular. js file, it takes thousands of lines of pretty code and turns it into only a few lines of ugly code.

What is the use of map file in Bootstrap?

The bootstrap css can be generated by Less. 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 are the map files in the CSS folder?

There are two files included in the CSS folder with .map file extensions. They are: They appear to be minified files but I don't know what they are for. Many developers generate CSS style sheets using a CSS preprocessor, such as Sass, Less, or Stylus. Because the CSS files are generated, editing the CSS files directly is not as helpful.

What are map files for and do I need them?

I'm using bootstrap. What are the .map files for and do I need them? Just as above. They're called "source maps", and are primarily used by Firefox and Chrome debuggers. They exist so that the debugger can display compiled CSS (via LESS, SASS, etc.) in a readable format.

Is Bootstrap easy to use?

Although it’s easy to use, Bootstrap has a slight learning curve at first. It takes time to learn the available classes and components, which can be complicated for someone with no technical knowledge. Bootstrap consists of a collection of syntax compiled in three primary files ‒ Bootstrap.css, Bootstrap.js, and Glyphicons.


1 Answers

From Working with CSS preprocessors in Chrome DevTools:

Many developers generate CSS style sheets using a CSS preprocessor, such as Sass, Less, or Stylus. Because the CSS files are generated, editing the CSS files directly is not as helpful.

For preprocessors that support CSS source maps, DevTools lets you live-edit your preprocessor source files in the Sources panel, and view the results without having to leave DevTools or refresh the page. When you inspect an element whose styles are provided by a generated CSS file, the Elements panel displays a link to the original source file, not the generated .css file.

like image 94
Steve Jansen Avatar answered Oct 03 '22 01:10

Steve Jansen