From 32bbc4502a7c627db7aaba08a5d3ec97e3f1b83e Mon Sep 17 00:00:00 2001 From: Florent Morselli Date: Wed, 10 Jan 2024 17:53:35 +0100 Subject: [PATCH] Documentation updated --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 1e38b37..e36f2e7 100644 --- a/README.md +++ b/README.md @@ -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 `` 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.