diff options
author | kontrollanten <6680299+kontrollanten@users.noreply.github.com> | 2020-12-13 04:15:27 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-01-13 09:10:52 +0100 |
commit | dfdd158a75d91208a8444a8bad1663ca3bafe299 (patch) | |
tree | c53f392aebdb405a6e9cb9e13dd8560999a3e67c /scripts/build | |
parent | 26171379d0196ac645923e72b12e1cf29089835b (diff) | |
download | PeerTube-dfdd158a75d91208a8444a8bad1663ca3bafe299.tar.gz PeerTube-dfdd158a75d91208a8444a8bad1663ca3bafe299.tar.zst PeerTube-dfdd158a75d91208a8444a8bad1663ca3bafe299.zip |
client: register service worker
closes #296
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build/client.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build/client.sh b/scripts/build/client.sh index 0f5b2d976..68939290c 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh | |||
@@ -70,6 +70,8 @@ else | |||
70 | npm run ng build -- --localize=false --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json $additionalParams | 70 | npm run ng build -- --localize=false --output-path "dist/$defaultLanguage/" --deploy-url "/client/$defaultLanguage/" --prod --stats-json $additionalParams |
71 | fi | 71 | fi |
72 | 72 | ||
73 | mv "./dist/$defaultLanguage/ngsw-worker.js" "./dist/" | ||
74 | |||
73 | cd ../ && npm run build:embed && cd client/ | 75 | cd ../ && npm run build:embed && cd client/ |
74 | 76 | ||
75 | # Copy runtime locales | 77 | # Copy runtime locales |