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.