Description
🚀 feature request
Relevant Package
This feature request is for @angular/pwa
Description
When using the command:
ng add @angular/pwa --project *project-name*
it completes a set of tasks including:
- Adds the @angular/service-worker package to your project.
- Enables service worker build support in the CLI.
- Imports and registers the service worker in the app module.
- Updates the index.html file:
- Includes a link to add the manifest.json file.
- Adds meta tags for theme-color.
- Installs icon files to support the installed Progressive Web App (PWA).
- Creates the service worker configuration file called ngsw-config.json, which specifies the caching behaviors and other settings.
However on step 7, adding the icons files these are generic default Angular icons. In order to replace these developers then need to manually:
- Find an icon generator
- Upload their image and generate the new code
- Download the icons copy/paste into the folder
- Copy/paste the icons code into the index.html head tag
Every developer needs to do these steps on every new project. So it would save alot of time if we had an automated solution.
Describe the solution you'd like
The option to include my HQ image file for the icon, which is automatically converted into the various sizes and added used instead of the default Angular icon.
Describe alternatives you've considered
Consider using a webpack plugin or node.js script to generate the icons for us?
Some examples:
https://github.com/jantimon/favicons-webpack-plugin
https://github.com/itgalaxy/favicons