DEV Community

Discussion on: Overriding the Default Theme in Element UI with SCSS

Collapse
 
siberiadev profile image
siberiadev

Thanx for the awesome article
Could you tell me why I shouldn't import whole element ui styles, as they suggest all users?
Just want to understand the reason. Thank you again

Collapse
 
sirtimbly profile image
Tim Bendt

Simply for modularization. Why ship unused CSS code to your users? The element project went to the trouble of modularizing their source CSS files so I like the idea of trimming my builds down as small as possible. One thing to note is that since we use things that aren't part of the "dist" folder there's no guarantee it will stay in the same place in future versions.