I was used to using the 7-1-pattern to structure my Sass codebase.
Now I started analyzing my project with Google Lighthouse, and basically it tells me that I should removed my unused CSS. The unused CSS however is there because I include my main.sass
, which includes all styles independently from the page I'm on.
How do you guys usually deal with this? Page-specific imports (breaking the 7-1-pattern) or are there other tweaks?