Skip to content

Custom class names

Compare
Choose a tag to compare
@kevinkace kevinkace released this 20 Sep 20:40
· 102 commits to master since this release

Now supports custom class names, such as:

let config = {
  include : [
    { ":last-child"   : "last" }, // specific replacement
    { "firstLastOnly" : "first-last" }, // replace all in group
    { "all"           : (pseudoClass) => pseudoClass.replace(":", "") } // function returning class name
  ]
};

Resolves #3.