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(html): add head when missing from entry point #784

Merged

Conversation

userquin
Copy link
Member

@userquin userquin commented Nov 13, 2024

Description

When there is no head in the html entry point, the sw and the web manifest may not be register: this PR checks for </head> and <body> to add the head when required, showing a warning when missing both.

Linked Issues

resolves #782

Additional Context


Tip

The author of this PR can publish a preview release by commenting /publish below.

Copy link

netlify bot commented Nov 13, 2024

Deploy Preview for vite-plugin-pwa-legacy ready!

Name Link
🔨 Latest commit 007650d
🔍 Latest deploy log https://app.netlify.com/sites/vite-plugin-pwa-legacy/deploys/6749f493cf54640008c61009
😎 Deploy Preview https://deploy-preview-784--vite-plugin-pwa-legacy.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

pkg-pr-new bot commented Nov 13, 2024

npm i https://pkg.pr.new/vite-plugin-pwa@784

commit: 007650d

src/html.ts Outdated Show resolved Hide resolved
src/html.ts Show resolved Hide resolved
@userquin userquin merged commit 856d3a0 into main Nov 29, 2024
6 checks passed
@userquin userquin deleted the userquin/feat-add-head-when-missing-head-injecting-sw-reg branch November 29, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<head> tag required for the manifest to be correctly injected
1 participant