Revert "Minify mediaquery node"

This reverts commit b3fbfd94df.

This revert the last commit of moving the changes
in condition which can work for any MediaFeature node
pull/6824/head
raivaibhav 5 years ago
parent b3fbfd94df
commit 605676f837

@ -321,6 +321,10 @@ class Atrule {
if (i > 0) {
code.overwrite(c, child.start, ' ');
}
c = child.end;
}
});
}
if (parent && parent.type === 'MediaFeature') {
const char_at_start = code.original[parent.start];
const char_at_end = code.original[parent.end - 1];
@ -348,11 +352,6 @@ class Atrule {
code.overwrite(parent.start, parent.end , `${char_at_start}${parent.name}${char_at_end}`, { contentOnly: true });
}
}
c = child.end;
}
});
}
}
});
}

Loading…
Cancel
Save