string | Function
undefined
Set the favicon icon path for all pages, can be set as:
After config this option, the favicon will be automatically copied to the dist directory during the compilation, and the corresponding link
tag will be added to the HTML.
Set as a relative path:
Set to an absolute path:
Set to a URL:
After recompiling, the following tags are automatically generated in the HTML:
For detailed usage, please refer to Rsbuild - html.favicon.