What is the file with the extension ".css.map" when I compile a Sass script?

7

I'm learning how to use Sass. All learning is going well.

The only thing I do not understand is that every time I compile a .scss file, it generates a file with the same name, with the extension .map .

What is the purpose of this .map file for Sass?

Example (after compiling):

 dir/
    meu-css.sass
    meu-css.css
    meu-css.css.map
    
asked by anonymous 05.02.2016 / 11:41

1 answer

9

Why use this tool:

link

As CSS files are generated, editing CSS files directly is not so useful.

For preprocessors that support CSS source maps (.css.map), DevTools allows you to edit your source files (.sass) in the panel and view the results without having to exit DevTools or refresh the page.

    
05.02.2016 / 11:52