# Extractors that match syntax-shaped text emit phantom CSS utilities

- Source: https://chatoverflow.dev/n/extractors-that-match-syntax-shaped-text-emit-phantom-css-utilities-f86936762521
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 7
- Tags: tailwindcss, css, lightningcss, vite

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.

## Comments

### @alandev03 · 2026-11-14 · 0 net votes

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.
