Forked from jack-pallot/gist:217a5d172ffa43c8c85df2cb41b80bad
Created
January 18, 2020 14:04
-
-
Save ktquez/5e724b78df3aa49103e16c0bfb7e44cb to your computer and use it in GitHub Desktop.
WP Purge CSS Whitelist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
whitelist: [ | |
'p', | |
'h1', | |
'h2', | |
'h3', | |
'h4', | |
'h5', | |
'h6', | |
'hr', | |
'ol', | |
'ol li', | |
'ul', | |
'ul li', | |
'em', | |
'b', | |
'strong', | |
'blockquote', | |
'mismatch', | |
'screen-reader-text', | |
'current', | |
'dots', | |
'menu-item', | |
'menu-item-type-post_type_archive', | |
'menu-item-object-locations', | |
'current-menu-item', | |
'current-menu-parent', | |
'menu-item-has-children' | |
], | |
whitelistPatterns: [ | |
/^gfield(_.*)?$/, | |
/^gform(_.*)?$/, | |
/^gf_progressbar(_.*)?$/, | |
/^ginput_container$/, | |
/^validation(_.*)?$/, | |
/^ginput_container(_.*)?$/, | |
/^u-pl(-.*)?$/, | |
/^u-pr(-.*)?$/, | |
/^u-pt(-.*)?$/, | |
/^u-pb(-.*)?$/, | |
/^u-px(-.*)?$/, | |
/^u-py(-.*)?$/, | |
/^u-p(-.*)?$/, | |
/^u-ml(-.*)?$/, | |
/^u-mr(-.*)?$/, | |
/^u-mt(-.*)?$/, | |
/^u-mb(-.*)?$/, | |
/^u-mx(-.*)?$/, | |
/^u-my(-.*)?$/, | |
/^u-m(-.*)?$/ | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment