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

Jason Atkinson
Jason Atkinson
26,245 Points

sass --watch, not working!

hay I know alot of people seem to have this problem with sass but hopefully some of you guys can help me out.

I have the latest version of sass installed

sass 3.4.21 (selective steve)

I can see sass files by using: sass /directpath

but when i run sass --watch /directpath

it comes up with the normal >>> Sass is watching for changes. Press Ctrl-C to stop but when I make a change to the scss file and save it and go to the command prompt nothing happens and when i check the css file it created for me when i ran --watch, it doesnt have the change in it?

I've un-installed and re-installed sass and restarted my computer cant think of anything else I can try to resolve this problem a lot of people way it seems to fix itself after a while... i hope that's true.

1 Answer

Hi!

Could you try running sass again with two directories after --watch?

The first should be your source directory, and the second should be your output directory

sass --watch sourcefolder/path:outputfolder/path

Note that the two folder names are separated with a colon. sourcefolder/path is your original sass/scss file directory and the outputfolder/path is the name of the folder where your resulting css file lives.

Jason Atkinson
Jason Atkinson
26,245 Points

Hi, thanks for the advice... I tried it still not working :( it can convert it when you first watch it just doesnt seem to track any changes i make after the additional set up action?