Last active
September 14, 2019 20:14
-
-
Save darisi/7b4396bddc382b659e95 to your computer and use it in GitHub Desktop.
Uncss setting with grunt examples
This file contains hidden or 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
uncss: { | |
dist: { | |
options: { | |
ignore: [ | |
/(#|\.)fancybox(\-[a-zA-Z]+)?/, | |
/expanded/, | |
/js/, | |
/wp-/, | |
/align/, | |
/admin-bar/, | |
// needed for Bootstrap's transitions | |
".fade", | |
".fade.in", | |
".collapse", | |
".collapse.in", | |
".navbar-collapse", | |
".navbar-collapse.in", | |
".collapsing", | |
// needed for the `<noscript>` warning; remove them when fixed in uncss | |
".alert-danger", | |
".visible-xs", | |
".noscript-warning", | |
// currently only in a IE conditional so uncss doesn't see it | |
// ".close", has error in syntax-opacity | |
".alert-dismissible", | |
".open", | |
//theme specific | |
/shrink/, | |
".navbar-brand-s", | |
// Woocommerce | |
/woocommerce/, | |
// Flexible | |
/module/, | |
".mod-default", | |
".mod-primary", | |
".mod-secondary", | |
".mod-white", | |
".mod-gray", | |
".mod-dark" | |
], | |
stylesheets : ['assets/css/main.min.css'], | |
ignoreSheets : [/fonts.googleapis/], | |
urls : [], //Overwritten in load_sitemap_and_uncss task | |
}, | |
files: { | |
'assets/css/main.min.css': ['**/*.php'] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment