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

docs: Updates inject-manifest docs to explicitly mention devOptions #14

Merged
merged 1 commit into from Jan 6, 2023

Conversation

lukebatchelor
Copy link
Contributor

Just a small docs update to hopefully save someone a lot of pain.

Whilst following the docs for injecting a custom service worker I kept running into the Cannot use import statement outside a module error. After spending a long time on it, I eventually found that it's 100% answered in the docs already, so I'm just making that more clear.

I think this could be a pretty common use case, a user is developing a custom service worker, they're reading the custom service worker docs and they're copying the code samples with imports in them, so hopefully this is useful.

Cheers

@netlify
Copy link

netlify bot commented Jan 6, 2023

Deploy Preview for vite-pwa-org ready!

Name Link
🔨 Latest commit 109e62e
🔍 Latest deploy log https://app.netlify.com/sites/vite-pwa-org/deploys/63b7b684eab44000088e1ffe
😎 Deploy Preview https://deploy-preview-14--vite-pwa-org.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 settings.

@userquin userquin merged commit d44333d into vite-pwa:main Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants