@dr.pogodin/react-utils
Version:
Collection of generic ReactJS components and utils
20 lines (19 loc) • 710 B
TypeScript
/**
* @category Configs
* @module webpack/app-production
* @desc Production Webpack configuration for applications.
*/
import MiniCssExtractPlugin from 'mini-css-extract-plugin';
import { type Configuration } from 'webpack';
import { type OptionsT as BaseOptionsT } from './app-base';
type OptionsT = BaseOptionsT & {
cssExtractionOptions?: MiniCssExtractPlugin.PluginOptions;
};
/**
* @param {object} ops
* @param {string} ops.context Base URL for resolution of relative config paths.
* @param {boolean} [ops.dontEmitBuildInfo] If set the `.build-info` file won't
* be created at the disk during the compilation.
*/
export default function configFactory(ops: OptionsT): Configuration;
export {};