Patch Changes
-
b3769e2:
collectno longer moves rules out of the parsed stylesheet one by one. That made it quadratic in the number of top-level rules and took seconds on large stylesheets.It also fixes two bugs:
otherlost rules from an at-rule when a non-critical rule came before a critical one;blockedClasseslet every second matching rule intocritical.
Whitespace between rules in the output now follows the source stylesheet.
-
92ea7cc:
collectgives the keyframes it appends to the critical CSS the same whitespace with postcss 8.4 and 8.5. With postcss 8.5.19 and later, a blank line that preceded the keyframes in the source stylesheet ended up in the critical CSS.