css-purge
css-purge copied to clipboard
bug: the line that's after one with "important" is missed
Hello. I want to remove duplicate declarations in my css. Some of them contain rules with and without "important".
I've tried simple example but found the following behaviour (everything is set to false in the config)
Input:
body {
padding: 5px !important;
margin: 5px;
font-size: 15px;
}
body {
padding: 10px;
}
Output:
body {
padding: 5px !important;
font-size: 15px;
padding: 10px;
}
The margin is missed.
Input:
body {
padding: 5px;
margin: 5px;
font-size: 15px;
}
body {
padding: 10px;
}
Output:
body {
margin: 5px;
font-size: 15px;
padding: 10px;
}
Everything is ok.
What's the problem? Am I doing something wrong?