0

I have an angular pwa (angular 11.2.8) and I usually generate my production code with

ng build --prod

in the dist folder, i can locate the pwa manifest.webmanifest file

now: I need to change two settings of the manifest file (scope and start url) from

"scope": "./",
"start_url": "./",

to

"scope": "/",
"start_url": "/index.html",

And I don't want to do it in the manifest.webmanifest file, as it is not in VCS

where can I store these settings in order to find them in the manifest file at the next build?

fabio.ivona
  • 577
  • 7
  • 24

1 Answers1

1

The source of the manifest file is at src\manifest.webmanifest (by default), which is (should be, if not already) tracked in the source control. That file is created when adding the @angular/pwa package, and should be checked-in.

You can modify that file, and it will be copied over to the dist output at build time.

ulmas
  • 2,203
  • 16
  • 22