Skip to content

CSS optimization support remove unused CSS selector #5

Description

@yuanyan

Search the whole plain HTML and template files in project, find and remove the unused CSS selector content in CSS files.

Orign:

.btn{}
.primary-btn{}
.js-primary-btn-active{}   /* JavaScript dynamic add */
.danger-btn{}                 /* Unused in current project */
.warn-btn()                    /* Unused in current project */
<button class="btn primary-btn">

After optimization:

.btn{}
.primary-btn{}
.js-primary-btn-active{}

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

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions