ByteFE
Jun 30, 2021 · Frontend Development
Understanding AST and Its Application in CSS Processing with PostCSS
This article explains what an Abstract Syntax Tree (AST) is, demonstrates how JavaScript code is transformed into an AST, describes the tokenization and parsing steps used by PostCSS to generate a CSS AST, and shows how plugin mechanisms like AutoPrefixer can extend the toolchain.
ASTAutoprefixerCSS parsing
0 likes · 9 min read