Skip to content

Commit

Permalink
perf(@angular-devkit/build-angular): reduce memory usage by cleaning …
Browse files Browse the repository at this point in the history
…output directory before emitting

Unless `deleteOutputPath` is false, we should clean, this helps reduce assets in tests.
  • Loading branch information
alan-agius4 committed Jun 7, 2021
1 parent b35ce89 commit 699802d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down

0 comments on commit 699802d

Please sign in to comment.