removeDuplicateRules #1188
-
Hello community! I discovered this beautiful project but encountered a problem (maybe out of ignorance)
I get this: Instead of that : To get the good result I can call a second time with removeEmpty:true but it seems to me to be a walk around.. Did i make a mistake? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @Uvatek ! There are two
The reason is only level 2 optimizations can figure out Hope this helps! |
Beta Was this translation helpful? Give feedback.
Hello @Uvatek !
There are two
removeEmpty
flags - in level 1 and level 2. In your case you can skip level 1 flag and just use level 2 flag:The reason is only level 2 optimizations can figure out
a{font-weight:700}
is repeated - in fact it'sfont-weight: 700
which is overridden in seconda{...
block so it can be dropped in first one, then in another pass the firsta{}
can be dropped.Hope this helps!