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

Rachel Lee
Rachel Lee
1,611 Points

How to run Sass locally in conjunction with Jekyll?

I'm trying to get Sass to run locally and am unable to. I'm only able to see the changes I generate in my .scss file if I first do sass --watch . in my terminal, see the changes appear in my .css file and then do jekyll serve --watch and then run my site on my local server. Help!

2 Answers

Rachel Lee
Rachel Lee
1,611 Points

I figured it out. First, you need to update jekyll (this can be done in the terminal), then you need to add this at the top of your .scss file:


You will now see changes made to the .css file in your site folder.

Michael Alaev
Michael Alaev
5,415 Points

try just to use

$ jekyll serve --watch

its working for me. you can use gulp.js or grunt.js to watch changes in your html,css,js and reload or recompile sass for you the same why as jekyll dose.