-
Notifications
You must be signed in to change notification settings - Fork 11.9k
"start_url" in manifest file is not updated by a build with --baseHrefΒ #15092
Copy link
Copy link
Closed
Labels
area: @angular-devkit/build-angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix
Milestone
Description
π Bug report
Command (mark with an x)
- [ ] new
- [X] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
No
Description
I have a brand new Angular project where I added PWA features via the add schematic ng add angular/pwa. In the web manifest file the "start_url" property is set to "/" by default.
If I run a PROD build changing the baseHref (ng build --prod --baseHref "/myDemo/"), the asset URLs in the ngsw.json file are correctly update, but not the "start_url" property in the manifest file. It must be updated manually.
π¬ Minimal Reproduction
- Create a new Angular app:
ng new myDemo - Add PWA features:
ng add @angular/pwa - Make a prod build using baseHref option:
ng build --prod --baseHref "/myDemo/"
π₯ Exception or Error
The manifest.webmanifest file is copied in the dist folder, but its start_url property does not reflect the value used for the baseHref option.
π Your Environment
Angular CLI: 8.1.1
Node: 12.3.1
OS: darwin x64
Angular: 8.2.0-next.1
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.801.1
@angular-devkit/build-angular 0.801.1
@angular-devkit/build-optimizer 0.801.1
@angular-devkit/build-webpack 0.801.1
@angular-devkit/core 8.1.1
@angular-devkit/schematics 8.1.1
@angular/cli 8.1.1
@angular/pwa 0.801.1
@ngtools/webpack 8.1.1
@schematics/angular 8.1.1
@schematics/update 0.801.1
rxjs 6.5.2
typescript 3.4.5
webpack 4.35.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: @angular-devkit/build-angularfreq1: lowOnly reported by a handful of users who observe it rarelyOnly reported by a handful of users who observe it rarelyseverity3: brokentype: bug/fix