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.

(cherry picked from commit 699802d)
  • Loading branch information
alan-agius4 committed Jun 7, 2021
1 parent b57580e commit 4c2bd2f
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 4c2bd2f

Please sign in to comment.