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

Douglas Hucker
Douglas Hucker
4,979 Points

How to use Sass in a production environment (AKA not using Sass locally)

Hello! I am a Treehouse user and I LOVE IT! I recently started using Sass in a project, and I LOVE IT as well. BUT, for the life of me, I can't figure out how using Sass makes any sense. Where I work we build a lot of WordPress sites, and we hardly ever develop locally (I know, some might say we're doing it wrong). My question is, and correct me if I'm wrong I'm very new to Sass, if you can only use Sass locally (which is how I understand it), how is it relevant after launching a site? We would have to download an entire WordPress site and database to update a few lines of Sass code? Please help me understand, I've been trying to research this and nobody seems to use Sass in a production environment. Are there any resources you can point me toward? Sass is definitely the future of CSS, and I'm trying to sell my team on it, but if we can't use it in production it won't fly around here. Thanks for your patience!

2 Answers

Atanas Sqnkov
Atanas Sqnkov
14,981 Points

Hi Douglas!

SASS is a CSS pre-processor. The code written with its syntax is for the developer only. It makes your job as a developer faster and easier. It is for YOU. Your project uses the CSS that is being produced by SASS.

After you compile your CSS, as you might know, the best practice is to minimize it.

This is just an opinion though. I am not too sure because I just started with SASS. Please correct me if I am wrong.

Cheers!

Douglas Hucker
Douglas Hucker
4,979 Points

Hello Atanas, thanks for your fast response. I understand what Sass is, my question is, though, because Sass can only be compiled locally, is there a way for it to be compiled on the sever, in the production environment? Or is our workflow the issue here, since we almost never work locally?