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 trialJames Whiting
39,124 Pointssass --watch not updating css file
On a Mac installed sass and well typed in the command sass --watch /[Directorypath]/css/main.scss
The terminal responds with write /[Directorypath]/css/main.css
Problem when I update the main.scss the main.css file is not being watched and not getting updated. Note: if I 'Ctrl-C' to stop in Terminal and then reenter sass --watch /[Directorypath]/css/main.scss the main.css gets updated.
Have any thoughts on a fix. This makes scss not so badass. Better off css for the rest of my life. Please help my world become a better place. Thanks, Ross
2 Answers
James Whiting
39,124 PointsJust an update. I tried.
sass --watch /[Directorypath]/css/.
and it worked. The watch now updates the css when I edit the scss file. Life is better thank Misty and Oisn, I hope you read this response.
Misty Majewski
5,276 PointsThat is strange that is updates only when you stop and reenter.. When I watch a file I type sass --watch . The dot at the end tells it to watch any scss file. So far I have not had a problem and I can change from one sass file to another without having to stop it and start over. Maybe try that and see what happens?
oisin
5,286 Pointsoisin
5,286 PointsI am having the exact same problem, if you find the solution please let me know!