Skip to content
This repository was archived by the owner on Jan 19, 2024. It is now read-only.
This repository was archived by the owner on Jan 19, 2024. It is now read-only.

BEM support #28

@mir3z

Description

@mir3z

This great tool apparently does not handle BEM notation. Consider the following example:

<html>
   <head>
      <style>
         .foo {}
         .foo__bar {}
      </style>
   </head>
</html>
<body>
   <div class="foo"></div>
   <div class="foo__bar"></div>
</body>

After tranforming via html-uglify:

  • foo is replaced by xz which is fine
  • foo__bar is replaced by xz__bar which can be further optimized

I expect foo__bar is replaced as a whole selector.

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