mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 15:02:11 +08:00
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.
This commit is contained in:
parent
b35ce89de5
commit
699802d488
@ -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 }) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user