This repository was archived by the owner on Apr 4, 2025. It is now read-only.
This repository was archived by the owner on Apr 4, 2025. It is now read-only.
manifest.json comes with incorrect icon paths #706
Closed
Description
Bug Report or Feature Request (mark with an x
)
- [x ] bug report -> please search issues before submitting
- [ ] feature request
Area
- [ ] devkit
- [ x] schematics
Versions
Angular CLI: 6.0.0-rc.4
Repro steps
ng new myApp
cd myApp
ng add @angular/pwa --project=myApp
Desired functionality
After linking the assets/manifest.json manually (as already mentioned in #686) from the assets folder:
the referenced icons are failing (404). The manifest is located in the assets folder and so are the manifest icons. However, the icons are referenced from the an images folder, i.e. src: "images/icons/icon-72x72.png"
It would be better to locate the manifest in the src folder. This requires:
- move the generated manifest.json file to the src folder
- make a notion in the angular-cli file that manifest.json should be served (similar to the favion.ico)
- change the icon references to the assets folder