mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-23 23:59:27 +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,
|
context: root,
|
||||||
entry: entryPoints,
|
entry: entryPoints,
|
||||||
output: {
|
output: {
|
||||||
clean: buildOptions.deleteOutputPath,
|
clean: buildOptions.deleteOutputPath ?? true,
|
||||||
path: path.resolve(root, buildOptions.outputPath),
|
path: path.resolve(root, buildOptions.outputPath),
|
||||||
publicPath: buildOptions.deployUrl ?? '',
|
publicPath: buildOptions.deployUrl ?? '',
|
||||||
filename: ({ chunk }) => {
|
filename: ({ chunk }) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user