Skip to content

Commit

Permalink
fix(@angular-devkit/build-angular): emit formatted stats.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-agius4 authored and filipesilva committed Jun 29, 2020
1 parent dc8d8e0 commit 52b02c6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -308,7 +308,7 @@ export function getCommonConfig(wco: WebpackConfigOptions): Configuration {
new (class {
apply(compiler: Compiler) {
compiler.hooks.emit.tap('angular-cli-stats', compilation => {
const data = JSON.stringify(compilation.getStats().toJson('verbose'));
const data = JSON.stringify(compilation.getStats().toJson('verbose'), undefined, 2);
compilation.assets['stats.json'] = new RawSource(data);
});
}
Expand Down

0 comments on commit 52b02c6

Please sign in to comment.