S
S
Shimpanze2018-05-28 05:43:07
css
Shimpanze, 2018-05-28 05:43:07

How do some sites (like GitHub) include *.scss files directly?

Hello!
I noticed that some sites connect *.scss files directly to the site:
5b0b6c9d1f21d875148385.jpeg
How do they do it?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Eugene, 2018-05-28
@Shimpanze

To facilitate debugging and troubleshooting, browsers support "maps" that allow you to get the line number in the source file from the line in the compiled / minified file.
You can read about it, for example, here: blog.teamtreehouse.com/introduction-source-maps

S
Sergiu Mitu, 2018-05-28
@EaGames

This is just a .css map, no one directly connects .scss, you can open the source code of the same github, from the styles there are only 2 .css files, at the end of which you can find a link to the maps themselves prntscr.com/jng5n3

R
Roman Sultanov, 2018-05-28
@Sezyara

This is either assembled on their host, or this is a map of the source file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question