UNPKG

593 BTypeScriptView Raw
1/// <reference types="webpack-dev-server" />
2import { Configuration } from 'webpack';
3declare type MetaConfig = Configuration | ((env?: string) => Configuration);
4/**
5 * Merge two Webpack configs.
6 *
7 * In the user config:
8 * - Ignores given sections (options.ignore).
9 * - Ignores plugins that shouldnt be used twice or may cause issues.
10 *
11 * @param {object} baseConfig
12 * @param {object|Function} userConfig
13 * @param {string} env
14 * @return {object}
15 */
16export default function mergeWebpackConfig(baseConfig: MetaConfig, userConfig: MetaConfig, env?: string): Configuration;
17export {};
18
\No newline at end of file