Rebelmail / posthtml-uglify

A PostHTML plugin to rewrite CSS identifiers in HTML
ISC License
6 stars 5 forks source link

remove id attrs, optionally #21

Open stevenvachon opened 8 years ago

stevenvachon commented 8 years ago

…if there is no corresponding selector in the stylesheet.

Before:

<style>
#exists { prop:value }
</style>
<div id="exists"></div>
<div id="non-existent"></div>

After:

<style>
#xz { prop:value }
</style>
<div id="xz"></div>
<div></div>