kuyin-webpack-plugins
Version:
custom webpack, enhanced-resolve plugins
14 lines (13 loc) • 401 B
TypeScript
export interface FallbackPath {
path: string;
useWhenPatternNotFound: boolean | ((request: any) => boolean);
}
export interface FallbackOptions {
pattern: RegExp;
fallbackPath: string | FallbackPath | Array<FallbackPath | string>;
}
export declare class FallbackResolvePlugin {
options: FallbackOptions;
constructor(options: FallbackOptions);
apply(resolver: any): void;
}