Skip to content

Commit

Permalink
perf(@angular-devkit/build-angular): clean no-longer used assets duri…
Browse files Browse the repository at this point in the history
…ng 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
  • Loading branch information
alan-agius4 committed May 18, 2021
1 parent e31e5e9 commit f5f41ea
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
context: root,
entry: entryPoints,
output: {
clean: buildOptions.deleteOutputPath,
path: path.resolve(root, buildOptions.outputPath),
publicPath: buildOptions.deployUrl ?? '',
filename: ({ chunk }) => {
Expand Down

0 comments on commit f5f41ea

Please sign in to comment.