UNPKG

just-scripts

Version:
22 lines 744 B
/// <reference types="node" /> import { Configuration } from 'webpack'; import { TaskFunction } from 'just-task'; export interface WebpackTaskOptions extends Configuration { config?: string; /** true to output to stats.json; a string to output to a file */ outputStats?: boolean | string; /** * Environment variables to be passed to the webpack-dev-server */ env?: NodeJS.ProcessEnv; /** * Transpile the config only */ transpileOnly?: boolean; /** * Optional callback triggered on compile */ onCompile?: (err: Error, stats: any) => void | Promise<void>; } export declare function webpackTask(options?: WebpackTaskOptions): TaskFunction; //# sourceMappingURL=webpackTask.d.ts.map