Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): ensure all Webpack Stats assets a…
Browse files Browse the repository at this point in the history
…re 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)
  • Loading branch information
clydin authored and alan-agius4 committed Jun 3, 2021
1 parent c00a045 commit 10a263a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const webpackOutputOptions = {
warnings: true,
errors: true,
assets: true, // required by custom stat output
cachedAssets: true, // required for bundle size calculators

// Needed for markAsyncChunksNonInitial.
ids: true,
Expand Down

0 comments on commit 10a263a

Please sign in to comment.