This shows how to use styled-components
with preact-cli.
Styles are collected and inlined during pre-rendering, with no extra build or configuration step required.
The only configuration change required is to add a constant, just to prevent SSR-specific styled-components code from being loaded on the client.
Hello, Thanks for sharing this setup for Preact and Styled Components.
However, i end up with both styles injected in the index.html and inside the main bundle, do you have any clues on this ?
Thanks.
