Don't modify index.html during build - invalidates ngsw cache
This commit is contained in:
parent
8de76fcddb
commit
f98369436e
@ -54,8 +54,6 @@ steps:
|
||||
- rm -rf www
|
||||
- tar xzf build.tar.gz
|
||||
- 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
|
||||
when:
|
||||
event: promote
|
||||
@ -92,8 +90,6 @@ steps:
|
||||
- rm -rf www
|
||||
- tar xzf build.tar.gz
|
||||
- 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
|
||||
when:
|
||||
event: promote
|
||||
|
@ -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": [
|
||||
|
@ -3,9 +3,9 @@
|
||||
|
||||
<head>
|
||||
<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="format-detection" content="telephone=no"/>
|
||||
|
Loading…
Reference in New Issue
Block a user