You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in my opinion this is not an issue when following some guidelines and avoid calling an extend multiple times. In plain CSS we used to avoid duplicate rules so why care less when using a preprocessor?
Anyway, I like extends (done right) ;) and I don't like people blaming the tool but we have discussion on Twitter about bloat from using extend.
This particular example does not appear to be that bloat if you compare it to a result of inheriting some real project classes (for instance to inherit Bootstrap button you need something like :extend(.btn all) which will generate about hundred of new selectors you'll most likely never use ;)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Use CSS minifiers (most will optimize the example just fine).
I'm closing this in favour of #1468 (see also tickets referenced there for deeper insight on various pitfalls about automatic merging).
Hi,
in my opinion this is not an issue when following some guidelines and avoid calling an extend multiple times. In plain CSS we used to avoid duplicate rules so why care less when using a preprocessor?
Anyway, I like extends (done right) ;) and I don't like people blaming the tool but we have discussion on Twitter about bloat from using extend.
Consider this code (which I did not write): ;)
.foo appears multiple times in the same selector group:
What do you think? Should LESS clean duplicate selectors or should it not to force DRY when writing:
The text was updated successfully, but these errors were encountered: