Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 52b02c6

Browse files
alan-agius4filipesilva
authored andcommittedJun 29, 2020
fix(@angular-devkit/build-angular): emit formatted stats.json file
1 parent dc8d8e0 commit 52b02c6

File tree

1 file changed

+1
-1
lines changed
  • packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs

1 file changed

+1
-1
lines changed
 

‎packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
308308
new (class {
309309
apply(compiler: Compiler) {
310310
compiler.hooks.emit.tap('angular-cli-stats', compilation => {
311-
const data = JSON.stringify(compilation.getStats().toJson('verbose'));
311+
const data = JSON.stringify(compilation.getStats().toJson('verbose'), undefined, 2);
312312
compilation.assets['stats.json'] = new RawSource(data);
313313
});
314314
}

0 commit comments

Comments
 (0)
Please sign in to comment.