rework-classmap

Rework CSS transform to eliminate unused class rules

rework-classmap

Rework CSS transform which removes unused class rules and optionally can compress class names.

% npm install rework-classmap
var rework        = require('rework');
var makeClassmap  = require('rework-classmap');

var classmap = makeClassmap({
  'SomeClass': true,
  'AnotherClass': true
});

var transformed = rework(src).use(classmap).toString();