postcss-epub
PostCSS plugin to give correct ePub3 css output.
See the EPUB 3 CSS Profile for more information.
Installation
$ npm install postcss-epub
Options
fonts:true
- This will ensure fonts have the correct font-weight and font-style defaults. This will also throw an error if any there is not a valid font source format (opentype or woff).strip:true
- This will strip any non-epub-
prefixes.strict:true
- Implies all other options are set.
Usage
// or
See PostCSS docs for examples for your environment.
Example