diff --git a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts index c3beb80e1774..4c9f83fad922 100644 --- a/packages/angular_devkit/build_angular/src/webpack/configs/common.ts +++ b/packages/angular_devkit/build_angular/src/webpack/configs/common.ts @@ -413,7 +413,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration { context: root, entry: entryPoints, output: { - clean: buildOptions.deleteOutputPath, + clean: buildOptions.deleteOutputPath ?? true, path: path.resolve(root, buildOptions.outputPath), publicPath: buildOptions.deployUrl ?? '', filename: ({ chunk }) => {