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 trial

CSS

SASS comments on css

Hello,

I am watching the the first part of the Sass series (Nesting Selectors to be exact http://teamtreehouse.com/library/sass-basics/getting-started-with-sass/nesting-selectors).

I have got two files:

  1. sass.scss
  2. sass.css

It is working fine, but after before every css rule there is a comment saying /* line 14, sass.scss */

Also, it does not to do the proper formatting like the video i.e

.rule { padding:5px }

2 Answers

Tom Bedford
Tom Bedford
15,645 Points

There are different output styles which control this. The line number comments won't be shown when you output as "compressed".

There is also an option to change your environment from "development" (will show comments) to "production" (will not show comments) for all outputs styles. The way you change this will depend on your setup.

I use Scout which has easy options for setting the output and environment without needing terminal commands.

Thanks for your comment.

I am also using Scout, but I can not see where the options are for setting the outpout. Do you mind telling me where I can find these?

Thanks

Tom Bedford
Tom Bedford
15,645 Points

When you have a project running at the top right there should be two buttons, "configure" and "log". Click "configure" and the options are under "Output Modes" near the end of the list. You may have to stop/restart to see the new setting applied.