-
Notifications
You must be signed in to change notification settings - Fork 8
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
Get screenshot of the component #30
Comments
I think it would be possible once nuxt/framework#5689 land, can you confirm @danielroe @pi0 ? |
Components prefixed wth |
Yes. Currently the PR returns a result like: {
"rendered": [ { "html": "<pre data-v-a0337c84> Route: /foo </pre>" } ],
"scripts": "<script type=\"module\" src=\"/_nuxt/entry.65591c03.mjs\" crossorigin></script><script type=\"module\" src=\"/_nuxt/RouteComponent.96ab4d69.mjs\" crossorigin></script>",
"styles": "<link rel=\"stylesheet\" href=\"/_nuxt/entry.4e0f8d43.css\"><link rel=\"stylesheet\" href=\"/_nuxt/RouteComponent.2df1bd45.css\">"
} (API may change as the PR is refined.) This allows for a completely independent HTML document to be constructed which renders that component only, including all needed CSS. ( |
Who should we assign @atinux ? |
We can start without screenshots for now on Studio, let's keep it for now and do not assigne anyone. |
Using data64, this could be an option disabled by default.
Would love to explore the best way to do this @farnabaz @kevinmarrec
The text was updated successfully, but these errors were encountered: