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

master
Garrett Mills 4 years ago
parent 8de76fcddb
commit f98369436e
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

@ -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…
Cancel
Save