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 trialAdam Gamble
4,557 PointsHow does Sass work with Github
HI,
I'm currently doing the Sass basics course, and have just finished Git and Github courses. Now I want to start using sass on my own projects and push them to Github, but im confused about what to do with the scss files. Do i push both the scss files and the compiled css files to Github? Do I only push the compiled css file to github and leave the scss file?
2 Answers
paulscanlon
Courses Plus Student 26,735 PointsHey Adam
What I usually do is push everything to Github including all my scss files. When I put a website live is when I just upload the CSS files to the server and keep the scss files behind.
I find it easier to put things like sass and uncompiled JS files in a "src" or source folder, just keeps them separate from your distribution files.
Hope that helped
Paul
Adam N
70,280 PointsYou need to push the css file up if you're using github pages, otherwise you wont see any css being applied to your site.
Adam Gamble
4,557 PointsThanks for the reply, I am aware i need to push the CSS file up, I was wondering if i also push the scss file up, to show it has been coded with SASS, and not just plain CSS. I just pushed the SASS files up anyway
Adam N
70,280 PointsI don't ignore the sass file w/ git, so it gets pushed up.