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

BEM support #28

Open
mir3z opened this issue Feb 26, 2019 · 0 comments
Open

BEM support #28

mir3z opened this issue Feb 26, 2019 · 0 comments

Comments

@mir3z
Copy link

mir3z commented Feb 26, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant