When there is a favicon.* file in the config directory at the root of the project, Modern.js will automatically set the file to the html.favicon configuration option for generating the favicon icon on the page:
After the build is completed, you can see the following tags automatically generated in HTML:
When setting up the favicon, Modern.js looks for files in the following order:
favicon.pngfavicon.jpgfavicon.jpegfavicon.svgfavicon.icoWhen there is an icon.* file in the config directory at the root of the project, Modern.js will automatically set the file to the html.appIcon configuration option for generating the Apple Touch Icon icon under the iOS system.
After the build is completed, you can see the following tags automatically generated in HTML:
When setting up the app icon, Modern.js looks for files in the following order:
icon.pngicon.jpgicon.jpegicon.svgicon.ico