Skip to content

Favicon and assets ​

TL;DR: RSPFx serves assets/favicon.svg on local preview to avoid a broken icon. Import assets from a bundle when you want them in the .sppkg.

Projects scaffold assets/favicon.svg as a 32 by 32 SVG. The dev server serves it at /assets/favicon.svg and injects <link rel="icon"> at /. SharePoint pages ignore this file - it is for preview only.

Troubleshoot ​

SymptomFix
Broken favicon on http://localhost:4321/restore assets/favicon.svg and restart rspfx dev
404 at /assets/favicon.svgcheck assets/ exists at project root
Icon not updatinghard reload with Ctrl+Shift+R

Favicon is a dev only help. Site favicon is set in SharePoint site settings or tenant theme.

For file layout, see ../../reference/project-structure.md.

Released under the MIT License.