@nestjs/cli
Version:
The Nest CLI: create NestJS applications, generate modules, controllers and CRUD resources, and build, run and watch projects and monorepos.
20 lines (19 loc) • 1.07 kB
TypeScript
import { Configuration } from '../configuration/index.js';
import { AssetsManager } from './assets-manager.js';
import { BaseCompiler } from './base-compiler.js';
import { PluginsLoader } from './plugins/plugins-loader.js';
import type webpack from 'webpack';
export type WebpackConfigFactory = (config: webpack.Configuration, webpackRef: typeof webpack) => webpack.Configuration;
export type WebpackConfigFactoryOrConfig = WebpackConfigFactory | webpack.Configuration;
export type WebpackCompilerExtras = {
options: Record<string, any>;
assetsManager: AssetsManager;
webpackConfigFactoryOrConfig: WebpackConfigFactoryOrConfig | WebpackConfigFactoryOrConfig[];
debug?: boolean;
watchMode?: boolean;
};
export declare class WebpackCompiler extends BaseCompiler<WebpackCompilerExtras> {
constructor(pluginsLoader: PluginsLoader);
run(configuration: Required<Configuration>, tsConfigPath: string, appName: string | undefined, extras: WebpackCompilerExtras, onSuccess?: () => void): Promise<void> | undefined;
private createAfterCallback;
}