Skip to content

Commit b36a35d

Browse files
committed
perf(@angular-devkit/build-angular): clean no-longer used assets during builds
This reduce memory consumption during re-builds. ``` runtime.ba93f81591909b93394f.hot-update.js.map will be removed styles.ba93f81591909b93394f.hot-update.js.map will be removed runtime.ba93f81591909b93394f.hot-update.json will be removed runtime.ba93f81591909b93394f.hot-update.js will be removed styles.ba93f81591909b93394f.hot-update.js will be removed ``` See webpack/webpack#12947 (comment) and webpack/webpack#13127 (cherry picked from commit f5f41ea)
1 parent cc4662e commit b36a35d

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
443443
context: root,
444444
entry: entryPoints,
445445
output: {
446+
clean: buildOptions.deleteOutputPath,
446447
path: path.resolve(root, buildOptions.outputPath),
447448
publicPath: buildOptions.deployUrl ?? '',
448449
filename: ({ chunk }) => {

0 commit comments

Comments
 (0)