From 737cd4f8d5efc6f544febddb4a257ccdb5b0841b Mon Sep 17 00:00:00 2001 From: David <9059044+Tansito@users.noreply.github.com> Date: Thu, 17 Jun 2021 12:48:51 +0200 Subject: [PATCH] Service worker README update (#460) * Service worker README update * Added updated feedback --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ccdec27a..e0e502b9 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ # pwa-lit-template -> [Getting started](#getting-started) | [Build for production](#build-for-production) | [Create a new page](#create-a-new-page) | [Environment configuration](#environment-configuration) | [Browser support](#browser-support) +> [Getting started](#getting-started) | [Build for production](#build-for-production) | [Create a new page](#create-a-new-page) | [Environment configuration](#environment-configuration) | [Service worker](#service-worker) | [Browser support](#browser-support) This project helps you to build Progressive Web Applications following the modern web standards, best practices and providing you with tools for that purpose. Out of the box, provides you with the following features: @@ -166,6 +166,12 @@ render() { } ``` +### Service worker + +This project has configured the generation and injection of a service worker in the build process. But it is disabled by default. To enable it you just need to change the variable `GENERATE_SERVICE_WORKER` in the `rollup.config.js` to `true`. + +Also you can change the Workbox configuration too modifying the variable `workboxConfig` in that same file. + ## Browser support - Chrome