For AI agents: the complete documentation index is available at /zh/llms.txt, the full documentation bundle is available at /zh/llms-full.txt, and this page is available as Markdown at /zh/configure/app/html/app-icon.md.
  • 简体中文
  • html.appIcon

    • 类型:
    type AppIconItem = {
      src: string;
      size: number;
      target?: 'apple-touch-icon' | 'web-app-manifest';
    };
    
    type AppIcon = {
      name?: string;
      icons: AppIconItem[];
      filename?: string;
    };
    • 默认值: undefined

    设置 Web 应用的图标,用于在添加到移动设备的主屏幕时显示:

    • 生成 web app manifest 文件和其中的 icons 字段。
    • 生成 HTML 文件中的 apple-touch-icon 标签和 manifest 标签。
    Info

    该配置项的使用方式与 Rsbuild 完全一致。详细信息请参考 Rsbuild - html.appIcon。