Skip to Content
Pragmatic Guide to Sass 3
book

Pragmatic Guide to Sass 3

by Hampton Lintorn Catlin, Michael Lintorn Catlin
July 2016
Intermediate to advanced
130 pages
2h 11m
English
Pragmatic Bookshelf
Content preview from Pragmatic Guide to Sass 3
29Debugging Your Sass

Sourcemaps are a feature that allow you to more directly debug your Sass from the browser. Browsers can’t “read” Sass—they need it to be compiled into CSS. This means that when you’re debugging your site locally, you see only the CSS output rather than the Sass that you’ve written. Rather than try to figure out which CSS line corresponds to which Sass line, sourcemaps show the exact Sass line in your code.

Sass sourcemaps are enabled by default when you compile your style sheets. When inspecting an element on the page, you can see the Sass file it came from. In the following case, you can see that the <h1> styles that are being implemented come from the _header.scss partial, on line 5.

Another useful feature is @warn ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Jump Start Sass

Jump Start Sass

Hugo Giraudel, Miriam Suzanne
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
Mastering Sass

Mastering Sass

Luke Watts

Publisher Resources

ISBN: 9781680502060Errata Page