Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Service worker README update #460

Merged
merged 3 commits into from
Jun 17, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -166,6 +166,10 @@ render() {
}
```

## Service worker
Tansito marked this conversation as resolved.
Show resolved Hide resolved

This project supports service worker but it is disable by default. To enable it you just need to configure the variable `GENERATE_SERVICE_WORKER` in the rollup configuration file: `rollup.config.js`. The variable has the **false** value, but you can change it and enable the service worker introduction in the build step. Furthermore you can change the default service worker configuration too modifying the variable `workboxConfig` in that same file.
Tansito marked this conversation as resolved.
Show resolved Hide resolved

## Browser support

- Chrome
Expand Down