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
|
- 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
|
||||||
|
@ -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": [
|
||||||
|
@ -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"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user