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
it will reduce the amount of resulting css when devs use your mixin in their own less files. There will still be some duplicate with .clearfix() calling both mixin .clearfix() and selector .clearfix (known issue with less.js, and I do wish you would change .clearfix() to .makeclearfix() or .addclearfix() or whatever to alleviate this problem, but I know you won't).
When the good fellas over at LESS do fix that problem, this code (combined with my suggested change)
Yeah, we'll punt this to a v4 thing since our intention is that all mixins should never generate compiled styles on their own. In agreement with you on this though.
your current set up is so:
consider switching to this:
it will reduce the amount of resulting css when devs use your mixin in their own less files. There will still be some duplicate with .clearfix() calling both mixin .clearfix() and selector .clearfix (known issue with less.js, and I do wish you would change .clearfix() to .makeclearfix() or .addclearfix() or whatever to alleviate this problem, but I know you won't).
When the good fellas over at LESS do fix that problem, this code (combined with my suggested change)
will result in:
and of course if a dev uses .clearfix(); throught their own less files, the resultant compiled css will see a pretty significant reduction in size
The text was updated successfully, but these errors were encountered: