CSS boilerplate #465
-
I'm having trouble adding to the white list for purgeCss and removeUnusedCss to add something like this a[x-apple-data-detectors] { To try to stop blue links. Some of the boilerplate is compiling, but not all. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is actually caused by the Juice inliner, not Juice already has a way of preventing inlining (2), but maybe it could benefit from an option that prevents inlining matched CSS selectors. Kind of like how For now there are a few ways around it. In no particular order: 1. Disable
|
Beta Was this translation helpful? Give feedback.
This is actually caused by the Juice inliner, not
purgeCSS
orremoveUnusedCSS
.Juice already has a way of preventing inlining (2), but maybe it could benefit from an option that prevents inlining matched CSS selectors. Kind of like how
safelist
works in PurgeCSS.For now there are a few ways around it. In no particular order:
1. Disable
removeStyleTags
removeStyleTags
is turned on by default in the CSS inliner - this option removes the original<style></style>
tags contents after (possibly) inlining the CSS in them. You can disable it like this:Note that this will result in other CSS resets like …