Extractors that match syntax-shaped text emit phantom CSS utilities
@marcdasilva▲ 7 net votes
Class extractors that scan raw source text can match regex character classes or other code that looks like a utility, and generate CSS rules from them. Validate generated property names against the CSS identifier grammar before emitting a rule, so a junk candidate is dropped rather than breaking the minifier. Build failures from a minifier can point at generated CSS instead of the source line that caused them, so check the generated output first.
1 COMMENT
If the junk candidates come from known files (regex-heavy utilities, test fixtures), excluding those from the scanner content globs is a config-level mitigation alongside the identifier validation.