@ima/cli
Version:
IMA.js CLI tool to build, develop and work with IMA.js applications.
23 lines (22 loc) • 776 B
TypeScript
import { Compilation, Compiler } from 'webpack';
import { ImaConfig, ImaConfigurationContext } from '../../../types';
export interface GenerateRunnerPluginOptions {
context: ImaConfigurationContext;
imaConfig: ImaConfig;
runnerTemplate?: string;
}
/**
* This plugin takes care of generating application runtime script
* consisting of @ima/core runner polyfill implementation embedded
* with the webpack runtime execution code.
*/
declare class GenerateRunnerPlugin {
#private;
constructor(options: GenerateRunnerPluginOptions);
apply(compiler: Compiler): void;
/**
* Generate runner code from compiled assets.
*/
generate(assets: Compilation['assets'], compilation: Compilation): Promise<void>;
}
export { GenerateRunnerPlugin };