@craco/craco
Version:
Create React App Configuration Override, an easy and comprehensible configuration layer for create-react-app.
12 lines (11 loc) • 745 B
TypeScript
import type { Configuration as WebpackConfig } from 'webpack';
export declare function pluginByName(targetPluginName: string): (plugin: any) => boolean;
export declare function getPlugin(webpackConfig: WebpackConfig, matcher: (value: any, index?: number, obj?: any[]) => boolean): {
isFound: boolean;
match: ((this: import("webpack").Compiler, compiler: import("webpack").Compiler) => void) | import("webpack").WebpackPluginInstance | undefined;
};
export declare function addPlugins(webpackConfig: WebpackConfig, webpackPlugins: any[]): void;
export declare function removePlugins(webpackConfig: WebpackConfig, matcher: (value: any, index?: number, array?: any[]) => boolean): {
hasRemovedAny: boolean;
removedCount: number;
};