Skip to content

[Feature]: Support more manifest fields #4933

@kpiotr

Description

@kpiotr

What problem does this feature solve?

It would be great if more manifest members were supported, to allow more customization.

It's currently possible to specify the "name" and "icons" through the html.appIcon api

What does the proposed API look like?

One way it could be done: add more fields to the html.appIcon

type AppIconItem = {
  src: string;
  size: number;
  target?: 'apple-touch-icon' | 'web-app-manifest';
};

type AppIcon = {
// existing fields
  name?: string;
  icons: AppIconItem[];
  filename?: string;
// new fields
  short_name: string;
  orientation: string;
  display: string;
  start_url: string;
  background_color: string;
  theme_color: string;
// ... etc


};

Another way would be, instead of calling the configuration option html.appIcon, add a configuration option called html.manifest, with a similar API

type IconItem = {
  src: string;
  size: number;
  target?: 'apple-touch-icon' | 'web-app-manifest';
};

type Manifest = {
// existing fields
  name?: string;
  icons: IconItem[];
  filename?: string;
// new fields
  short_name: string;
  orientation: string;
  display: string;
  start_url: string;
  background_color: string;
  theme_color: string;
// ... etc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions