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 Write Smart and Efficient CSS with Sass Nesting Media Queries

Samantha Atkinson
seal-mask
.a{fill-rule:evenodd;}techdegree
Samantha Atkinson
Front End Web Development Techdegree Student 36,955 Points

Can a Stylesheet become too long and to bigger file size?

I notice that the output CSS file includes all the reset styles. Previously before learning Sass, we were taught to add it as a separate file in the head section of your html. I understand trying to keep HTTP request to a minimum. But by adding the reset styles to one stylesheet doesn't this make your stylesheet in danger of becoming a large file size, especially if your site is big? What's the best practice to know when to have more than one style sheet? Is it possible to have 2 output files in Sass?

keeping the CSS in a single file is the best practice, but before employing it one must minify the CSS( basically removing any white space and claiming it all to getter), to save time on the minifying you can use gulp or grunt.

1 Answer

they are for managing your files there is a great course un gulp here is very simple.