UNPKG

postcss-critical-split

Version:

A PostCSS plugin that takes existing CSS files and splits out the annotated critical styles into a seperate file.

34 lines (27 loc) 334 B
body { background-color: black; } p { color: red; } @media screen and (min-width: 400px) { p { display: inline-block; border: red thin solid; } div { float: left; } div::before { display: table; } } @media screen and (min-width: 500px) { div { float: left; } } span { display: inline-block; color: #333; }