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

Effectiveness of Library #14

Open
avin-kavish opened this issue Apr 20, 2020 · 1 comment
Open

Effectiveness of Library #14

avin-kavish opened this issue Apr 20, 2020 · 1 comment

Comments

@avin-kavish
Copy link

I'm curious just how effective this is and how it handles dynamic usage scenarios.

For example, can something like this be handled?

css`
  ${props => rgba(normalizeColor('border', props.theme), 0.2)};
`
@mikestopcontinues
Copy link

It definitely doesn't. You would have to pre-render your entire app to get the correct value. If you SSR, you can /effectively/ produce this optimization for end-users' initial load, but not because of the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants