Skip to content

Commit

Permalink
Documentation updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Jan 10, 2024
1 parent 53c92cf commit 32bbc45
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,12 @@ The following command will generate a Service Worker in the `public` directory w
symfony console pwa:sw
```

If you want override the existing Service Worker, you can use the `--force` option:

```bash
symfony console pwa:sw --force
```

Next, you have to register the Service Worker in your HTML pages with the following code in the `<head>` section.
It can also be done in a JavaScript file such as `app.js`.
In you customized the output filename or the public folder, please replace `sw.js` with the path to your Service Worker file.
Expand Down

0 comments on commit 32bbc45

Please sign in to comment.