stylex
stylex copied to clipboard
Post-process generated CSS to remove unused variables and inline constants
In the StyleX compilation process, after the collected styles are de-duplicated and combined, process the generated CSS to:
- Find any unused CSS variables and remove them.
- Find any CSS variables that are never re-assigned (they only have one value in the entire stylesheet) and inline their usage in the whole CSS file.