Skip to content

Commit a22474e

Browse files
authored
refactor(@angular/cli): move stats-json to build only (angular#4746)
Other commands (like serve) do not support this option, so it should only be in build.
1 parent 16bfdf0 commit a22474e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@angular/cli/commands/build.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export const baseBuildCommandOptions: any = [
3535
description: 'define the output filename cache-busting hashing mode',
3636
aliases: ['oh']
3737
},
38-
{ name: 'stats-json', type: Boolean, default: false },
3938
{
4039
name: 'poll',
4140
type: Number,
@@ -55,7 +54,8 @@ const BuildCommand = Command.extend({
5554
aliases: ['b'],
5655

5756
availableOptions: baseBuildCommandOptions.concat([
58-
{ name: 'watch', type: Boolean, default: false, aliases: ['w'] }
57+
{ name: 'watch', type: Boolean, default: false, aliases: ['w'] },
58+
{ name: 'stats-json', type: Boolean, default: false }
5959
]),
6060

6161
run: function (commandOptions: BuildTaskOptions) {

0 commit comments

Comments
 (0)