@nx/webpack
Version:
12 lines (11 loc) • 598 B
TypeScript
import { Configuration } from 'webpack';
/**
* Reads the webpack options from a give webpack configuration. The configuration can be:
* 1. A standard config object
* 2. A standard function that returns a config object (webpack.js.org/configuration/configuration-types/#exporting-a-function)
* 3. An array of standard config objects (multi-configuration mode)
* 4. A Nx-specific composable function that takes Nx context, webpack config, and returns the config object.
*
* @param webpackConfig
*/
export declare function readWebpackOptions(webpackConfig: unknown): Promise<Configuration[]>;