export interface FaviconWebpackPlugionOptions { /** our source logo - can be png or svg (required) */ logo: string /** * Enable caching and optionally specify the path to store cached data * Note: disabling caching may increase build times considerably */ cache?: boolean, /** * * Inject html links/metadata (requires html-webpack-plugin). * This option accepts arguments of different types: * - boolean * `false`: disables injection * `true`: enables injection if that is not disabled in html-webpack-plugin * - function * any predicate that takes an instance of html-webpack-plugin and returns either * `true` or `false` to control the injection of html metadata for the html files * generated by this instance. */ inject?: boolean | ((htmlWebpackPlugin: any) => boolean), /** * Favicons configuration option * @see https://github.com/itgalaxy/favicons */ favicons?: Partial, /** * Favicon generation modes * - `light` * the light mode is using the original logo as favicon * this mode has a very fast compilation but limited features * by default this mode is used for development * - `webapp` * the webapp mode is convertig the original logo into different favicons * this mode has a quite slow compilation but wide browser support * by default this mode is used for production */ mode?: 'light' | 'webapp', /** * Favicon generation modes used during development * - `light` * the light mode is using the original logo as favicon * this mode has a very fast compilation but limited features * by default this mode is used for development * - `webapp` * the webapp mode is convertig the original logo into different favicons * this mode has a quite slow compilation but wide browser support * by default this mode is used for production */ devMode?: 'light' | 'webapp', /** * Prefix path for generated assets */ prefix?: string, /** * The directory to output the assets relative to the webpack output dir. * Relative string paths are allowed here ie '../public/static'. If this * option is not set, `prefix` is used. */ outputPath?: string, /** Override the publicPath option usually read from webpack configuration */ publicPath?: string, } export type FaviconWebpackPlugionInternalOptions = Required> & FaviconWebpackPlugionOptions