Explicit state and event id minification
Ā
BE
18h ago+7415+7415+0123456789012345678901234567890123456789-236-236-012345678901234567890123456789
Summary
Add state and event name minification with CLI management tools.
- Introduces
minify.jsonconfig file to map state/event names to short IDs (e.g.,myapp.state.AppStateā"a") - Adds
reflex minifyCLI command group for managing minification - Reduces frontend bundle size and WebSocket payload size by replacing long state/event paths with compact identifiers
CLI Commands
# Initialize minify.json with IDs for all states and events
reflex minify init
# Sync minify.json after code changes
reflex minify sync
reflex minify sync --prune --reassign-deleted
# Validate config against current codebase
reflex minify validate
# List state tree with minified names
reflex minify list
reflex minify list --json
# Lookup a minified path
reflex minify lookup "a.bU"
based on #6098