html-inspector example

for /u/Tyreal as per https://www.reddit.com/r/webdev/comments/4v6qw3/is_there_a_way_to_find_unused_classes_in_html/

HTML

<script src="https://rawgit.com/philipwalton/html-inspector/master/html-inspector.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.3/css/bootstrap.min.css">
<div class="center-block"></div>

CSS

/* If you uncomment this and re-run the fiddle, 
 * you'll notice the warning about `.center-block` 
 * not existing in any stylesheet goes away.
 */
.center-block {
  
}

JavaScript

HTMLInspector.inspect();