stylex icon indicating copy to clipboard operation
stylex copied to clipboard

Post-process generated CSS to remove unused variables and inline constants

Open nmn opened this issue 1 year ago • 0 comments

In the StyleX compilation process, after the collected styles are de-duplicated and combined, process the generated CSS to:

  1. Find any unused CSS variables and remove them.
  2. 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.

nmn avatar Oct 09 '24 02:10 nmn