Don't modify index.html during build - invalidates ngsw cache
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2020-10-28 09:52:18 -05:00
parent 8de76fcddb
commit f98369436e
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246
3 changed files with 4 additions and 7 deletions

View File

@ -54,8 +54,6 @@ steps:
- rm -rf www - rm -rf www
- tar xzf build.tar.gz - tar xzf build.tar.gz
- cd www - cd www
- sed -i 's/<base href="\\/" \\/>/<base href="\\/i\\/"\\/>/' index.html
- sed -i 's/Ionic App/Noded/' index.html
- echo -n "$(uuidgen)" | sudo tee version.html - echo -n "$(uuidgen)" | sudo tee version.html
when: when:
event: promote event: promote
@ -92,8 +90,6 @@ steps:
- rm -rf www - rm -rf www
- tar xzf build.tar.gz - tar xzf build.tar.gz
- cd www - cd www
- sed -i 's/<base href="\\/" \\/>/<base href="\\/i\\/"\\/>/' index.html
- sed -i 's/Ionic App/Noded/' index.html
- echo -n "$(uuidgen)" | sudo tee version.html - echo -n "$(uuidgen)" | sudo tee version.html
when: when:
event: promote event: promote

View File

@ -1,4 +1,5 @@
{ {
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
"index": "/index.html", "index": "/index.html",
"assetGroups": [ "assetGroups": [
{ {
@ -16,7 +17,7 @@
}, },
{ {
"name": "assets", "name": "assets",
"installMode": "lazy", "installMode": "prefetch",
"updateMode": "prefetch", "updateMode": "prefetch",
"resources": { "resources": {
"files": [ "files": [

View File

@ -3,9 +3,9 @@
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>Ionic App</title> <title>Noded</title>
<base href="/" /> <base href="/i/" />
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/> <meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta name="format-detection" content="telephone=no"/> <meta name="format-detection" content="telephone=no"/>