You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,8 @@ All Juice methods take an options object that can contain any of these propertie
55
55
|`preserveMediaQueries`|`true`| Preserve all media queries (and contained styles) within `<style>` tags as a refinement when `removeStyleTags` is `true`. Other styles are removed. |
56
56
|`preserveKeyFrames`|`true`| Preserve all key frames within `<style>` tags as a refinement when `removeStyleTags` is `true`. Other styles are removed. |
57
57
|`preservePseudos`|`true`| Preserve all rules containing pseudo selectors defined in `ignoredPseudos` within `<style>` tags as a refinement when `removeStyleTags` is `true`. Other styles are removed. |
58
-
|`removeStyleTags`|`true`| Remove the original `<style>` tags after (possibly) inlining their CSS content. |
58
+
|`removeInlinedSelectors`|`false`| Remove CSS rules from `<style>` tags after (possibly) inlining them. Other rules are preserved. Works only if `removeStyleTags` is `false`. |
59
+
|`removeStyleTags`|`true`| Remove the original `<style>` tags after (possibly) inlining their CSS content. Overrides `removeInlinedSelectors`. |
|`webResources`|`{}`| An options object that will be passed to [web-resource-inliner](https://www.npmjs.com/package/web-resource-inliner) for Juice functions that will get remote resources (`juiceResources` and `juiceFile`). |
61
62
|`xmlMode`|`false`| Output XML/XHTML with all tags closed. Note that the input *must* also be valid XML/XHTML or you will get undesirable results. |
0 commit comments