Skip to content

feat(@schematics/angular): replace favicon.ico with favicon.png#32454

Closed
olagokemills wants to merge 1 commit intoangular:mainfrom
olagokemills:fix/favicon-png-11275
Closed

feat(@schematics/angular): replace favicon.ico with favicon.png#32454
olagokemills wants to merge 1 commit intoangular:mainfrom
olagokemills:fix/favicon-png-11275

Conversation

@olagokemills
Copy link

Replaced the legacy favicon.ico with a modern PNG favicon in the application schematic. Updated index.html template to reference favicon.png with correct MIME type.

Fixes #11275

PR Checklist

PR Type

  • Feature

What is the current behavior?

The ng new command generates a legacy favicon.ico file and adds a link tag with type="image/x-icon" to the index.html.

Issue Number: #11275

What is the new behavior?

The ng new command now generates a modern favicon.png file. The index.html template is updated to use <link rel="icon" type="image/png" href="favicon.png">. Existing schematic tests have been updated to reflect this change.

Does this PR introduce a breaking change?

  • No

Other information

The SVG favicon mentioned in the issue was not included to ensure maximum browser compatibility as a default, focusing on the PNG replacement requested.

Replaced the legacy favicon.ico with a modern PNG favicon in the
application schematic. Updated index.html template to reference
favicon.png with correct MIME type.

Fixes angular#11275
@google-cla
Copy link

google-cla bot commented Feb 7, 2026

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: @schematics/angular labels Feb 7, 2026
@JeanMeche
Copy link
Member

There is no value to replace the favicon with a low res PNG. Also the png is with the old logo.

@JeanMeche JeanMeche closed this Feb 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace favicon.ico in favor of png in src/assets

2 participants