@dr.pogodin/react-utils
Version:
Collection of generic ReactJS components and utils
23 lines (22 loc) • 697 B
TypeScript
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import { type Configuration } from 'webpack';
export type OptionsT = {
babelEnv: string;
babelLoaderOptions?: object;
context: string;
cssExtractionOptions?: MiniCssExtractPlugin.PluginOptions;
cssLocalIdent?: string;
dontUseProgressPlugin?: boolean;
entry: string | string[];
library: string;
mode: 'development' | 'none' | 'production';
outputPath?: string;
typescript?: boolean;
};
/**
* @param {object} ops
* @param {boolean} [ops.dontUseProgressPlugin] Set to not include progress
* plugin.
* @return {object}
*/
export default function configFactory(ops: OptionsT): Configuration;