DEV Community

Discussion on: How to structure your SASS code

Collapse
freetruckhorse profile image
freetruckhorse

I've read on many occasions that the @import rule was bad for performance as it delays the download of the css (ex : developers.google.com/web/fundamen...).
Have you notice this with this level of fragmentation ?

Collapse
thom4s profile image
Thomas

The sass @import rule is not the same as the vanilla css @import rule.
The sass compiler will make one file - main.css - by importing different sass files. In the end, you're linking one style file to your html or else and not importing anything else.

Collapse
freetruckhorse profile image
freetruckhorse

Thanks !