siegel
Version:
Web application development ecosystem
89 lines (88 loc) • 2.78 kB
TypeScript
import type { ConfigObject } from '../../types';
declare function getDefaultPluginsConfig(config: ConfigObject): {
readonly compression: {
readonly plugin: typeof import("compression-webpack-plugin");
readonly enabled: boolean;
readonly instances: {
readonly br: {
readonly enabled: boolean;
readonly options: {
filename: string;
algorithm: string;
compressionOptions: {
level: number;
};
test: RegExp;
threshold: 10240;
deleteOriginalAssets: false;
};
};
readonly gzip: {
readonly enabled: boolean;
readonly options: {
filename: string;
test: RegExp;
threshold: 10240;
deleteOriginalAssets: false;
};
};
};
};
readonly copy: {
readonly plugin: typeof import("copy-webpack-plugin");
readonly enabled: boolean;
readonly options: {
patterns: import("copy-webpack-plugin").Pattern[];
};
};
readonly sw: {
readonly plugin: import("./plugin_sw.js").SwPluginClassCtor;
readonly enabled: boolean;
readonly options: {
swPath: string;
};
};
readonly cssExtract: {
readonly plugin: typeof import("mini-css-extract-plugin");
readonly enabled: boolean;
readonly options: {
experimentalUseImportModule: true;
filename: string;
chunkFilename: string;
};
};
readonly html: {
readonly plugin: typeof import("html-webpack-plugin");
readonly enabled: boolean;
readonly options: {
template: string | undefined;
minify: {
collapseWhitespace: true;
};
};
};
readonly hot: {
readonly plugin: typeof import("webpack").HotModuleReplacementPlugin;
readonly enabled: boolean;
};
readonly reactRefresh: {
readonly plugin: typeof import("@pmmmwh/react-refresh-webpack-plugin");
readonly enabled: boolean;
readonly options: {
overlay: {
sockIntegration: "whm";
};
};
};
readonly eslint: {
readonly plugin: typeof import("eslint-webpack-plugin");
readonly enabled: false;
readonly options: {
extensions: string[];
configType: string;
emitWarning: true;
failOnError: false;
};
};
};
export default getDefaultPluginsConfig;