MCPcopy Index your code
hub / github.com/angular/angular-cli / getWebpackConfig

Function getWebpackConfig

packages/angular_devkit/build_webpack/src/utils.ts:58–66  ·  view source on GitHub ↗
(configPath: string)

Source from the content-addressed store, hash-verified

56}
57
58export async function getWebpackConfig(configPath: string): Promise<Configuration> {
59 if (!existsSync(configPath)) {
60 throw new Error(`Webpack configuration file ${configPath} does not exist.`);
61 }
62
63 const config = await import(configPath);
64
65 return 'default' in config ? config.default : config;
66}

Callers 2

index.tsFile · 0.90
index.tsFile · 0.90

Calls 1

existsSyncFunction · 0.85

Tested by

no test coverage detected