You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
819 B
25 lines
819 B
import { IConfig, IBundlerConfigType } from '@umijs/types';
|
|
import defaultWebpack from 'webpack';
|
|
export interface IOpts {
|
|
cwd: string;
|
|
config: IConfig;
|
|
type: IBundlerConfigType;
|
|
env: 'development' | 'production';
|
|
entry?: {
|
|
[key: string]: string;
|
|
};
|
|
hot?: boolean;
|
|
port?: number;
|
|
babelOpts?: object;
|
|
babelOptsForDep?: object;
|
|
targets?: any;
|
|
browserslist?: any;
|
|
bundleImplementor?: typeof defaultWebpack;
|
|
modifyBabelOpts?: (opts: object) => Promise<any>;
|
|
modifyBabelPresetOpts?: (opts: object) => Promise<any>;
|
|
chainWebpack?: (webpackConfig: any, args: any) => Promise<any>;
|
|
miniCSSExtractPluginPath?: string;
|
|
miniCSSExtractPluginLoaderPath?: string;
|
|
}
|
|
export default function getConfig(opts: IOpts): Promise<defaultWebpack.Configuration>;
|