You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the user is responsible for importing the CSS. This means that Puck CSS commonly ends up in production CSS bundles for rendered pages, not just for pages containing Puck.
Instead, we should inject the CSS dynamically into the head when rendering the <Puck> component . This will prevent Puck CSS from ending up in the production CSS bundle.
Considerations
The CSS will likely have to be bundled before importing, which may require a custom build pipeline and dev mode
The text was updated successfully, but these errors were encountered:
Currently, the user is responsible for importing the CSS. This means that Puck CSS commonly ends up in production CSS bundles for rendered pages, not just for pages containing Puck.
Instead, we should inject the CSS dynamically into the head when rendering the
<Puck>
component . This will prevent Puck CSS from ending up in the production CSS bundle.Considerations
The text was updated successfully, but these errors were encountered: