UNPKG

rollup-plugin-manifest-json

Version:

Rollup plugin to generate a manifest.json file used to tell the browser about your web app.

50 lines (49 loc) 1.31 kB
declare enum DisplayType { FULLSCREEN = "fullscreen", STANDALONE = "standalone", MINIMAL_UI = "minimal-ui", BROWSER = "browser" } declare enum OrientationType { ANY = "any", NATURAL = "natural", LANDSCAPE = "landscape", LANDSCAPE_PRIMARY = "landscape-primray", LANDSCAPE_SECONDARY = "landscape-secondary", PORTRAIT = "portrait", PORTRAIT_PRIMARY = "portrait-primary", PORTRAIT_SECONDARY = "portrait-secondary" } declare interface ManifestIcon { src: string; type: string; sizes: string; } declare interface ManifestRelatedApp { platform: string; url: string; } export interface ManifestOptions { short_name?: string; name?: string; start_url?: string; display?: DisplayType; background_color?: string; description?: string; icons?: ManifestIcon[]; related_applications?: ManifestRelatedApp[]; orientation?: OrientationType; scope?: string; theme_color?: string; } export interface PluginOptions { /** File path to your `manifest.json` file. */ input: string; /** Whether or not to mangle the outputted manifest. */ minify?: boolean; /** Directory to store the manifest file in. */ output?: string; /** Manifest options */ manifest?: ManifestOptions; } export {};