Skip to content

Commit 10a263a

Browse files
clydinalan-agius4
authored andcommitted
fix(@angular-devkit/build-angular): ensure all Webpack Stats assets are present on rebuilds
Webpack will only provide emitted assets in the returned Stats each rebuild unless the `cachedAssets` option is enabled. This is currently needed for the bundle budget calculations. Fixes #21038 (cherry picked from commit 11a414e)
1 parent c00a045 commit 10a263a

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/stats.ts

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const webpackOutputOptions = {
1818
warnings: true,
1919
errors: true,
2020
assets: true, // required by custom stat output
21+
cachedAssets: true, // required for bundle size calculators
2122

2223
// Needed for markAsyncChunksNonInitial.
2324
ids: true,

0 commit comments

Comments
 (0)