Skip to content

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

@nmn

Description

@nmn

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions