-
-
Notifications
You must be signed in to change notification settings - Fork 239
Open
Description
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
Labels
No labels