Skip to content

Contents inside element tags are also being scanned #27

Description

@jeytii

It seems that the plugin is reading the text contents as well. Consider the code below:

HTML:
<h1 class="text">Hello</h1>

Compiled CSS:

.text {
    color: red;
}
.hello {
    background: blue;
}

The .hello class is supposed to be removed from the compiled CSS since such class name doesn't exist in the HTML file, but it's still there because of h1's text content, which is "Hello".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions