fix(@angular-devkit/build-angular): display debug logs when using the --verbose option

Webpack doesn't display debug logs when setting the log level to verbose.

See: https://webpack.js.org/configuration/other-options/#debug and https://webpack.js.org/configuration/other-options/#level
This commit is contained in:
Alan Agius 2022-04-11 12:00:19 +02:00 committed by Douglas Parker
parent 3afd1ab9c0
commit be2b268c36

View File

@ -397,6 +397,7 @@ export async function getCommonConfig(wco: WebpackConfigOptions): Promise<Config
asyncWebAssembly: true,
},
infrastructureLogging: {
debug: verbose,
level: verbose ? 'verbose' : 'error',
},
stats: getStatsOptions(verbose),