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) Speeding up Workflow with Sass Working with Sass Libraries

shareyourpeace
shareyourpeace
3,244 Points

In which directory should I type sass --watch .

I had this working fine earlier but I ran into trouble when we got to using bourbon. Earlier, if I added code to main.scss terminal output showed that files had updated. Also when I saved main.scss, main.css was auto-generated. I had to start over.

Now I am back to where I was and within terminal have typed the following command at the main prompt and elsewhere.

In terminal

$ sass --watch .
>>> Sass is watching for changes. Press Ctrl-C to stop.
[Listen warning]:
  Listen will be polling for changes. Learn more at https://github.com/guard/listen#polling-fallback.

I had to recreate main.scss and I saved, then added some code and saved again.

Two things.

  1. When I save, there isn't any Green Output in terminal saying that I have updated main.scss.
  2. main.css is Not being autogenerated.

3 Answers

James Barnett
James Barnett
39,199 Points

I'm not sure I understand your issue.

In which directory should I type sass --watch .

The . at the end of the command means look in this directory for any files with a scss extension and generate css files

shareyourpeace
shareyourpeace
3,244 Points

Okay. Yes. I understand that

. References the current dir

I navigated to the directory where I believe the files exist

Usr/bin

And ran the command. Still no output.

Thanks

Why did my .scss files stop auto generating then.css files ?

Josué Rodriguez
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Josué Rodriguez
Front End Web Development Techdegree Graduate 24,118 Points

"Why did my .scss files stop auto generating then.css files ?"

Probably because that directory isn't being watched by Sass. I'm new to the terminal but for me typing in: ```cd ~ Ls

Helps me navigate to the folder I'm working in.