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

Richard Nash
Richard Nash
24,862 Points

sass --watch help...

I am redesigning the file system for a website that I'm working on in Workspaces. I've moved files around into this configuration:

file tree

But my sass --watch does not seem to be working anymore, and I get this error message:

console error

What should i do if i want to sass --watch to folders within folders? Is there anything that I need to do different?

Thanks! XD

Richard Nash

Richard Nash
Richard Nash
24,862 Points

harumph! need a new way to get images to work on here. Using Dropbox right now but it dies not seem to be reliable. Any suggestions?

5 Answers

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Richard;

For the sake of argument, let's say that your project is in the website folder. Inside that folder is your styles folder which would then have nested in there a scss and a css folder, correct?

You would navigate in the command line (console) to the styles folder, at which point you would run the sass --watch scss:css command.

Let me know if that makes sense and/or works for your development situation.

Happy coding,

Ken

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Richard;

I didn't see your file tree come through on the post, but for me I have two folders, scss and css. All of my scss code goes into the scss folder and then when I run sass --watch scss:css it will watch all of the subfolders of scss and if my manifests are done correctly it outputs the single file to the css folder.

Ken

Richard Nash
Richard Nash
24,862 Points

I've made a new folder called styles and inside that folder is an scss folder and a css folder. I want those folders to work together INSIDE my styles folder.

Ken Alger
STAFF
Ken Alger
Treehouse Teacher

Richard;

Run sass --watch scss:css from inside your styles folder at the command line.

Ken

Richard Nash
Richard Nash
24,862 Points

how do i do that?

styles/sass --watch css:css ?

I just ran this and it said that there is no such file or directory named styles/sass, which there is not.

So I must be missing some simple, magic command to make it work then?

Richard Nash
Richard Nash
24,862 Points

Yes, that is what I am trying to do, I just don't know how to use the command line very well. I will go research using the command line and hopefully I can figure it out. Do you have any command line resources that you recommend?

Ken Alger
Ken Alger
Treehouse Teacher

Richard;

Take a look at the Console Foundations Course here at Treehouse.

Ken