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
{{ message }}
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.
Right now, I've only baked in support for very straightforward ReactDOM renderToStaticMarkup in the react-percy-server-render package. It will automatically inject any CSS files into the head, but that's about it.
We may want to expose a way to modify the generated HTML before sending it to Percy, though. For example, when using styled-components for styling, ReactDOM will render in references to class names, but the CSS styles themselves need to be flushed and injected into the head. Middleware might be a nice way to make this possible without cluttering up the core react-percy code too much with edge cases.
The text was updated successfully, but these errors were encountered:
Right now, I've only baked in support for very straightforward ReactDOM renderToStaticMarkup in the
react-percy-server-render
package. It will automatically inject any CSS files into the head, but that's about it.We may want to expose a way to modify the generated HTML before sending it to Percy, though. For example, when using
styled-components
for styling, ReactDOM will render in references to class names, but the CSS styles themselves need to be flushed and injected into the head. Middleware might be a nice way to make this possible without cluttering up the corereact-percy
code too much with edge cases.The text was updated successfully, but these errors were encountered: