Files
NapCatQQ/.pnpm-store/v3/files/d8/1b9d92b2bd6ea32de1b041dd1e5cb292a21344a12a1c8417cabd28b70126f95743634e88ebe54c914ecd36cdd8ed06176e144bdd1643703a0a5ddaaab796c0
T
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

72 lines
1.4 KiB
Plaintext

import { Plugin } from 'vite';
import { PngOptions, JpegOptions, TiffOptions, GifOptions, WebpOptions, AvifOptions } from 'sharp';
import { Config as SVGOConfig } from 'svgo';
interface Options {
/**
* test to match files against
*/
test?: RegExp;
/**
* files to include
*/
include?: RegExp | string | string[];
/**
* files to exclude
*/
exclude?: RegExp | string | string[];
/**
* include assets in public dir or not
*/
includePublic?: boolean;
/**
* display logs using colors or not
*/
ansiColors?: boolean;
/**
* log stats to the terminal or not
*/
logStats?: boolean;
/**
* svgo opts
*/
svg?: SVGOConfig;
/**
* sharp opts for png
*/
png?: PngOptions;
/**
* sharp opts for jpeg
*/
jpeg?: JpegOptions;
/**
* sharp opts for jpg
*/
jpg?: JpegOptions;
/**
* sharp opts for tiff
*/
tiff?: TiffOptions;
/**
* sharp opts for gif
*/
gif?: GifOptions;
/**
* sharp opts for webp
*/
webp?: WebpOptions;
/**
* sharp opts for avif
*/
avif?: AvifOptions;
/**
* cache optimized images or not
*/
cache?: boolean;
/**
* path to the cache directory
*/
cacheLocation?: string;
}
declare function ViteImageOptimizer(optionsParam?: Options): Plugin;
export { ViteImageOptimizer };