postcss-epub-clean
PostCSS plugin to produce valid epub3 css.
See the EPUB 3 CSS Profile for more information.
See postcss-epub if you're only wishing to add prefixed css properties.
@font-face requires both font-weight and font-style, so both are set to "normal" if not present (it's not clear in the spec, but required in some readers).
The "-epub-" prefix is added to anything needing it per the spec and all non "-epub-*" prefixes are removed.
Note: This will leave the unprefixed property.
Installation
$ npm install postcss-epub-clean
Usage
// dependenciesvar fs = var postcss = var epub = // css to be processedvar css = fs // process cssvar output = css