Adds new options to readme

This commit is contained in:
Ben Zörb 2020-05-20 00:37:10 +02:00
parent 480549442f
commit 76e35c4d70
No known key found for this signature in database
GPG Key ID: B5022087DA9E02FF

View File

@ -69,6 +69,8 @@ Run `inline-critical --help` to see the list of options.
- `html` is the HTML you want to use to inline your critical styles, or any other styles
- `styles` are the styles you're looking to inline
- `options` is an optional configuration object
- `polyfill` will use loadCSS polyfill instead of preferred media=print strategy (https://www.filamentgroup.com/lab/load-css-simpler/)
- `preload` will add preload tags
- `minify` will minify the styles before inlining (default: true)
- `extract` will remove the inlined styles from any stylesheets referenced in the HTML
- `basePath` will be used when extracting styles to find the files references by `href` attributes