I'm looking at the "Sources" tab in Chrome developer tools. Some of the folders are orange and in italics. How are those different from the "regular" folders (shown in blue)?
Folder color
- Blue - Regular folder, not contains any source maps files
- Orange - Folder contains files having source maps attached (.less/.css or .ts/.js)
Resource color
- Yellow - JS
- Violet - CSS & Fonts
- Green - Images
- Grey - HTML
Chrome devs call these "authored files" (even when only the folders are colored this way):
Authored. Similar to the source files you view in your IDE. DevTools generates these files based on source maps provided by your build tools.
That's in contrast to "deployed files" (blue directories) -- what the browser actually uses.
From https://developer.chrome.com/docs/devtools/javascript/reference#group-authored-and-deployed
Meaning: Authored files are not really there. It's a tool used by developers to debug their websites and should probably not be visible in production... Only deployed files really matter for the browser to display the web page.
p.s. In the latest Chrome version, the color for source-mapped dirs seems to be more yellow, while .js files are more orange... ¯\_(ツ)_/¯
© 2022 - 2024 — McMap. All rights reserved.