postcss-critical-split
Version:
A PostCSS plugin that takes existing CSS files and splits out the annotated critical styles into a seperate file.
29 lines (23 loc) • 300 B
CSS
/* critical:start#header */
body {
background-color: black;
}
p {
color: red;
}
/* critical:end */
a {
text-decoration: none;
}
table {
width: 100%;
height: 200%;
}
* {
font-family: Arial, "Arial Black", sans-serif;
}
span {
/* critical#header */
display: inline-block;
color: #333;
}