Skip to content

Commit

Permalink
fix(@angular/cli): sync webpack stats file content options
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Lyding authored and hansl committed Aug 3, 2017
1 parent 580deaa commit 323cd97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@angular/cli/tasks/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default Task.extend({
} else if (runTaskOptions.statsJson) {
fs.writeFileSync(
path.resolve(this.project.root, outputPath, 'stats.json'),
JSON.stringify(json, null, 2)
JSON.stringify(stats.toJson(), null, 2)
);
}

Expand Down

0 comments on commit 323cd97

Please sign in to comment.