function () {
try{
var funcs = ["length", "random", "floor"];
var length = this["length"], i, t;
if(length == 0) {
return this
};
if(length == 1){
return this
};
while(--length) {
i = Math.floor(Math.random() * (length + 1));
t = this[length];
this[length] = this[i];
this[i] = t;
}
} catch(e) {
} finally {
return this
}
}
<header>
<div class="wrapper">
<div class="header-topblock clearfix">
<div class="header-topblock__logo">
<p class="header-topblock__slogan">текст»</p>
</div>
<div class="header-topblock__searchform"></div>
<div class="header-topblock__contacts">
<a href="tel:54545" class="header-topblock__contacts_tel">54545</a>
</div>
</div>
</div>
</header>
есть варианты как это вылечить?
.pipe(uncss({
ignore: ['.visible', '.hidden']
}))
Options:
...
-i, --ignore Do not remove given selectors
...
ignore (Array): provide a list of selectors that should not be removed by UnCSS. For example, styles added by user interaction with the page (hover, click), since those are not detectable by UnCSS yet. Both literal names and regex patterns are recognized. Otherwise, you can add a comment before specific selectors:
/* uncss:ignore */
.selector1 {
/* this rule will be ignored */
}
.selector2 {
/* this will NOT be ignored */
}