facebook / facebook/stylex

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

Open
#717 0 comments 12 reactions 1 assignee Claimed by @mellyeliu View on GitHub
enhancement
Dominant language
JavaScript
Stars
10.3k
Forks
481
Avg merge
3d 8h
Merged PRs (30d)
13

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.