Skip to content

Commit 699802d

Browse files
committed
perf(@angular-devkit/build-angular): reduce memory usage by cleaning output directory before emitting
Unless `deleteOutputPath` is false, we should clean, this helps reduce assets in tests.
1 parent b35ce89 commit 699802d

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+1
-1
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
413413
context: root,
414414
entry: entryPoints,
415415
output: {
416-
clean: buildOptions.deleteOutputPath,
416+
clean: buildOptions.deleteOutputPath ?? true,
417417
path: path.resolve(root, buildOptions.outputPath),
418418
publicPath: buildOptions.deployUrl ?? '',
419419
filename: ({ chunk }) => {

0 commit comments

Comments
 (0)