DEV Community

Discussion on: 8 SCSS Best Practices to Keep in Mind

Collapse
 
bitdweller profile image
Pedro Pimenta

All good tips, but I have a different preference regarding the nested media queries definitions: I actually prefer nesting them separately inside each declaration. I find it easier to check what's happening and don't need to scroll much to find the changes for each media query.

Also, for better performance, it is a good practice to merge all media queries on processing the SCSS files, using something like github.com/SassNinja/postcss-combi..., for example