CSS Sass Basics Write Smart and Efficient CSS with Sass Nesting Media Queries

Samantha Atkinson
Samantha Atkinson
Front End Web Development Techdegree Student 21,880 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

Samantha Atkinson
Samantha Atkinson
Front End Web Development Techdegree Student 21,880 Points

Thank you Kevin Frenandez-Gonzalez. I have heard about gulp and grunt but never actually knew what they for.

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