just-scripts
Version:
Just Stack Scripts
30 lines • 940 B
TypeScript
/// <reference types="node" />
import { TaskFunction } from 'just-task';
export interface WebpackCliTaskOptions {
/**
* Arguments for webpack-cli (e.g. --display-errors)
*/
webpackCliArgs?: string[];
/**
* Arguments to be passed into a spawn call for webpack dev server. This can be used to do things
* like increase the heap space for the JS engine to address out of memory issues.
*/
nodeArgs?: string[];
/**
* Environment variables to be passed to the webpack-cli
*/
env?: NodeJS.ProcessEnv;
/**
* The tsconfig file to pass to ts-node for Typescript config
*/
tsconfig?: string;
/**
* Transpile the config only
*/
transpileOnly?: boolean;
}
/**
* webpackCliTask - task for running webpack as a cli command
*/
export declare function webpackCliTask(options?: WebpackCliTaskOptions): TaskFunction;
//# sourceMappingURL=webpackCliTask.d.ts.map