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 Basics (retired) Variables, Mixins, and Extending Selectors Defining Variables

Sass to CSS is loading slowly

Whenever I'm working in my .scss file and wanting to view the changes, I'm noticing that its taking about 10 seconds to compile into CSS. This wouldn't be a big deal, however whenever Hampton types in Sass, it converts almost instantly and he can view the changed webpage. What would the reason for this be? I'm thinking it could be because my "sass --watch ." is searching from my entire User folder rather than just the folder that the Sass is located, but I'm not sure how to change this. Any help would be appreciated!

1 Answer

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Kyle;

I find that directing sass --watch to look only in the scss folder is the most efficient. If your folder structure is, for example:

Site | styles

and inside the styles folder you have scss and css folders then from the command line you would navigate to the styles directory and type

sass --watch scss:css

That will have in only look in the scss folder and output the CSS file to the css folder.

Hope it helps.

Ken

Thanks Ken!