pre-fetch-plugin
Version:
A pre-fetch plugin for Vite and Webpack
17 lines (16 loc) • 384 B
TypeScript
export interface ReqObj {
key: string;
method: string;
url: string;
queryParams: Record<string, any>;
cookieParams: Record<string, any>;
staticParams: Record<string, any>;
}
export interface OptionType {
pathList: string[];
hashList: string[];
reqs: ReqObj[];
}
export interface PreFetchPluginOptions {
options: OptionType[];
}