Skip to content

Commit

Permalink
fix(docs): conf plugin and injectRegister version
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Jun 30, 2022
1 parent 9cffade commit 5457575
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ export default defineConfig({
With this minimal configuration of the `vite-plugin-pwa` plugin, your application is now able to generate the [Web App Manifest](https://developer.mozilla.org/en-US/docs/Web/Manifest) and inject it at the entry point, generate the service worker and register it in the browser.

::: warning
If you are **NOT** using `vite-plugin-pwa` version `0.12.1+`, there is a bug handling `injectRegister` (the service worker generated will not include the code required to allow work with `autoUpdate` behavior).
If you are **NOT** using `vite-plugin-pwa` version `0.12.2+`, there is a bug handling `injectRegister` (the service worker generated will not include the code required to allow work with `autoUpdate` behavior).

If you're using a `vite-plugin-pwa` plugin version prior to `0.12.1`, you can fix the bug using this plugin configuration:
If you're using a `vite-plugin-pwa` plugin version prior to `0.12.2`, you can fix the bug using this plugin configuration:
```ts
import { VitePWA } from 'vite-plugin-pwa'
export default defineConfig({
Expand Down

0 comments on commit 5457575

Please sign in to comment.