Skip to content
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

feat: add transformHead hook #1323

Merged
merged 9 commits into from Sep 12, 2022
Merged

Conversation

userquin
Copy link
Collaborator

closes #1322

@userquin
Copy link
Collaborator Author

you can check it working in this repo: https://github.com/userquin/vite-pwa-vitepress-integration

  • from root folder run pnpm install && pnpm run build (node with corepack enabled required: read the contributing guide)
  • change to exmaples/pwa-simple and run pnpm run preview

@brc-dd
Copy link
Member

brc-dd commented Sep 12, 2022

I've made some changes, check once if they work well for you.

@brc-dd brc-dd changed the title feat: head build hook feat: add transformHead hook Sep 12, 2022
@userquin
Copy link
Collaborator Author

@brc-dd I will try to check it later

@userquin
Copy link
Collaborator Author

integration repo updated: the pwa-prompt also configured

docs/config/app-configs.md Outdated Show resolved Hide resolved
@userquin
Copy link
Collaborator Author

I'll check if we can also integrate the head in the client build to solve the hydration missmatch, changes LGTM (I think it can be merged: in the meantime, we can add also the hydration problems to transformHead)

@brc-dd brc-dd merged commit 6b16dad into vuejs:main Sep 12, 2022
@userquin userquin deleted the feat/head-build-hook branch September 12, 2022 12:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

allow modify head before SSG rendering
2 participants