UNCSS does not work properly with multiple class selectors

I use a selector of several classes for certain elements in my angular js application, for example:

<p class="first second">som text</p>

in my CSS file I have .first and additional additional properties for .first.second:

.first{
   ...
}

.first.second{
   ...
}

My problem is that I run grunt uncss, the generated file to read .first and .second , but not both, like .first.second, the problem is that I used this approach and I have thousands of selectors like this in my application.

How can I configure uncss to ignore all selectors defined with multiple classes without writing one at a time in combination with uncss ignore options?

- , Im ?

!

+4
1

-, . , .first.second , → .first.second

, :

<div class = "first">
    <div class = "second"></div>
</div>

→ # myDiv.first, div.second

-, , CSS, , .

, :

<p class="first second">som text</p>

, , :

.first
    {
        color: #333333;
    }

.second
    {
        text-decoration: underline;
    }

, , .

0

All Articles