UNPKG

1.18 kBTypeScriptView Raw
1import { BuildContext, ChangedFile } from './util/interfaces';
2export declare function webpack(context: BuildContext, configFile: string): Promise<void>;
3export declare function webpackUpdate(changedFiles: ChangedFile[], context: BuildContext, configFile?: string): Promise<void>;
4export declare function webpackWorker(context: BuildContext, configFile: string): Promise<any>;
5export declare function setBundledFiles(context: BuildContext): void;
6export declare function runWebpackFullBuild(config: WebpackConfig): Promise<{}>;
7export declare function getWebpackConfig(context: BuildContext, configFile: string): WebpackConfig;
8export declare function getWebpackConfigFromDictionary(context: BuildContext, webpackConfigDictionary: any): WebpackConfig;
9export declare function getOutputDest(context: BuildContext): string;
10export interface WebpackConfig {
11 devtool: string;
12 entry: string | {
13 [key: string]: any;
14 };
15 output: WebpackOutputObject;
16 resolve: WebpackResolveObject;
17}
18export interface WebpackOutputObject {
19 path: string;
20 filename: string;
21}
22export interface WebpackResolveObject {
23 extensions: string[];
24 modules: string[];
25}