Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nmn opened this issue Oct 9, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@nmn
Copy link
Contributor

nmn commented Oct 9, 2024

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 nmn added the enhancement New feature or request label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant