UNPKG

astro-favicons

Version:

An all-in-one favicon and PWA assets generator for Astro projects. It automates the creation of favicons, manifest, and supports hot reloading for efficient development. Powered by `astro-capo`, it keeps your ๏นค๐š‘๐šŽ๐šŠ๐š๏นฅ content well-organized and tidy.

29 lines (25 loc) โ€ข 882 B
import { AstroIntegration } from 'astro'; import { PlatformName, FaviconOptions } from 'favilib'; type Source = string | Buffer | (string | Buffer)[]; type InputSource = Record<PlatformName, Source>; type Input = Source | Partial<InputSource>; interface Options extends FaviconOptions { /** * Specify the source image(s) used to generate platform-specific assets. * @default `public/favicon.svg`. * @example * ```js * input: { * yandex: ["public/favicon.svg", await readFile("path/to/pixel.png")] * } * ``` */ input?: Input; /** * Powered by `astro-capo`, it keeps the `<head>` content well-organized and tidy. * @default config.compressHTML `true` */ withCapo?: boolean; } declare function createIntegration(options?: Options): AstroIntegration; export { type Options, createIntegration as default };