Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialStephen Gillon
11,996 PointsWhen I type "sass --watch .", it creates a main.css.map file. Not sure what that is.
It does not update the css file with what I type into scss. I'm currently using windows 10. Thanks!
1 Answer
Seth Kroger
56,413 PointsThe .map file is a reverse map for the resulting CSS file, showing where each declaration came from in their original SCSS file. They are used be tools like Chrome's DevTools when you are viewing the resulting web page. That way when you spot an error in the CSS, instead of being pointed to some arbitrary line in the compiled CSS and left wondering what file it came from it points you to the correct file of your Sass source.
Stephen Gillon
11,996 PointsStephen Gillon
11,996 PointsOh ok! I understand the map usage now. However, I don't see anything being written in the map file as I write in the scss one. I'm going to keep following along with the tutorial as best as I can. Thanks so much for your response!