Using index files when working with Sass and @use rules
Przeczytaj oryginałThis article explains the transition from the deprecated Sass @import rule to the newer @use rule. It details the problems with @import, such as global scope and code bloat, and demonstrates how @use provides better namespacing and performance. The guide includes practical examples of using index files to streamline the import of multiple Sass partials, based on the author's experience migrating the MDN Web Docs codebase.
Komentarze
Brak komentarzy
Bądź pierwszy, który podzieli się swoimi myślami!
Rozszerzenie przeglądarki
Uzyskaj natychmiastowy dostęp do AllDevBlogs z przeglądarki
Tydzień
1
Dokumentowanie decyzji projektowych – o ADR i RFC
DevSzczepaniak
•
1 głosów
2
Gemini CLI – co to jest i jak działa nowe narzędzie od Google dla programistów
UProgramisty Piotr Kolasiński
•
1 głosów