From f98369436e3cac99a7db099415fc32e4232d4127 Mon Sep 17 00:00:00 2001 From: garrettmills Date: Wed, 28 Oct 2020 09:52:18 -0500 Subject: [PATCH] Don't modify index.html during build - invalidates ngsw cache --- .drone.yml | 4 ---- ngsw-config.json | 3 ++- src/index.html | 4 ++-- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 16330a6..c47942f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -54,8 +54,6 @@ steps: - rm -rf www - tar xzf build.tar.gz - cd www - - sed -i 's///' index.html - - sed -i 's/Ionic App/Noded/' index.html - echo -n "$(uuidgen)" | sudo tee version.html when: event: promote @@ -92,8 +90,6 @@ steps: - rm -rf www - tar xzf build.tar.gz - cd www - - sed -i 's///' index.html - - sed -i 's/Ionic App/Noded/' index.html - echo -n "$(uuidgen)" | sudo tee version.html when: event: promote diff --git a/ngsw-config.json b/ngsw-config.json index aba8151..e419135 100644 --- a/ngsw-config.json +++ b/ngsw-config.json @@ -1,4 +1,5 @@ { + "$schema": "./node_modules/@angular/service-worker/config/schema.json", "index": "/index.html", "assetGroups": [ { @@ -16,7 +17,7 @@ }, { "name": "assets", - "installMode": "lazy", + "installMode": "prefetch", "updateMode": "prefetch", "resources": { "files": [ diff --git a/src/index.html b/src/index.html index b647d3f..189b088 100644 --- a/src/index.html +++ b/src/index.html @@ -3,9 +3,9 @@ - Ionic App + Noded - +