-
-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
Description
It would be fantastic to generate CSS at compile-time instead of runtime, mainly because it would reduce the output JS size to near zero, making #72 obsolete.
Example:
val abc = style(display.block)
// Macro turns ↑ into something like ↓
val abc = StyleA(…, PreGeneratedCss("display:block"))It would have to handle autoprefixing too.
How/could it determine whether variables are static/dynamic to handle marginLeft(zzz.px * 2)?
Even if it just takes care of the easy, static cases, I wonder how large the JS size savings could be...
Tamriel, ryan-williams, Grogs, glmars, DylanArnold and 1 more