diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-08 17:31:05 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-08 17:31:05 +0100 |
commit | 7193ad1044d2dfad8f929f0951f9a3601c056f67 (patch) | |
tree | e40ab985552696caad2e09861842d043e436fe7d /client/src/ngsw-config.json | |
parent | 151edeee3a1bff047bda4cdb60d98ad74f627488 (diff) | |
download | PeerTube-7193ad1044d2dfad8f929f0951f9a3601c056f67.tar.gz PeerTube-7193ad1044d2dfad8f929f0951f9a3601c056f67.tar.zst PeerTube-7193ad1044d2dfad8f929f0951f9a3601c056f67.zip |
Add service worker
Diffstat (limited to 'client/src/ngsw-config.json')
-rw-r--r-- | client/src/ngsw-config.json | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/client/src/ngsw-config.json b/client/src/ngsw-config.json new file mode 100644 index 000000000..47a116bb7 --- /dev/null +++ b/client/src/ngsw-config.json | |||
@@ -0,0 +1,30 @@ | |||
1 | { | ||
2 | "index": "/index.html", | ||
3 | "assetGroups": [ | ||
4 | { | ||
5 | "name": "app", | ||
6 | "installMode": "prefetch", | ||
7 | "resources": { | ||
8 | "files": [ | ||
9 | "/index.html", | ||
10 | "/client/assets/images/favicon.png" | ||
11 | ], | ||
12 | "versionedFiles": [ | ||
13 | "/client/*.bundle.css", | ||
14 | "/client/*.bundle.js", | ||
15 | "/client/*.chunk.js" | ||
16 | ] | ||
17 | } | ||
18 | }, | ||
19 | { | ||
20 | "name": "assets", | ||
21 | "installMode": "lazy", | ||
22 | "updateMode": "prefetch", | ||
23 | "resources": { | ||
24 | "files": [ | ||
25 | "/client/assets/**" | ||
26 | ] | ||
27 | } | ||
28 | } | ||
29 | ] | ||
30 | } | ||