1
1
'use strict' ;
2
2
3
- const ADVANCED_GROUP = 'Advanced options:' ;
4
- const DISPLAY_GROUP = 'Stats options:' ;
5
- const SSL_GROUP = 'SSL options:' ;
6
- const CONNECTION_GROUP = 'Connection options:' ;
7
- const RESPONSE_GROUP = 'Response options:' ;
8
- const BASIC_GROUP = 'Basic options:' ;
9
-
10
3
module . exports = {
11
4
devServer : [
12
5
{
13
6
name : 'host' ,
14
7
type : String ,
15
8
description : 'The hostname/ip address the server will bind to' ,
16
- group : CONNECTION_GROUP ,
17
9
} ,
18
10
{
19
11
name : 'port' ,
20
12
type : Number ,
21
13
description : 'The port' ,
22
- group : CONNECTION_GROUP ,
23
14
} ,
24
15
{
25
16
name : 'static' ,
26
17
type : [ String , Boolean ] ,
27
18
description : 'A directory to serve static content from.' ,
28
- group : RESPONSE_GROUP ,
29
19
multiple : true ,
30
20
negative : true ,
31
21
} ,
@@ -38,13 +28,11 @@ module.exports = {
38
28
{
39
29
name : 'https' ,
40
30
type : Boolean ,
41
- group : SSL_GROUP ,
42
31
description : 'HTTPS' ,
43
32
} ,
44
33
{
45
34
name : 'http2' ,
46
35
type : Boolean ,
47
- group : SSL_GROUP ,
48
36
description : 'HTTP/2, must be used with HTTPS' ,
49
37
} ,
50
38
{
@@ -56,7 +44,6 @@ module.exports = {
56
44
name : 'client-progress' ,
57
45
type : Boolean ,
58
46
description : 'Print compilation progress in percentage in the browser' ,
59
- group : BASIC_GROUP ,
60
47
processor ( opts ) {
61
48
opts . client = opts . client || { } ;
62
49
opts . client . progress = opts . clientProgress ;
@@ -67,7 +54,6 @@ module.exports = {
67
54
name : 'hot-only' ,
68
55
type : Boolean ,
69
56
description : 'Do not refresh page if HMR fails' ,
70
- group : ADVANCED_GROUP ,
71
57
processor ( opts ) {
72
58
opts . hot = 'only' ;
73
59
delete opts . hotOnly ;
@@ -77,7 +63,6 @@ module.exports = {
77
63
name : 'setup-exit-signals' ,
78
64
type : Boolean ,
79
65
description : 'Close and exit the process on SIGINT and SIGTERM' ,
80
- group : ADVANCED_GROUP ,
81
66
negative : true ,
82
67
} ,
83
68
{
@@ -105,7 +90,6 @@ module.exports = {
105
90
{
106
91
name : 'client-logging' ,
107
92
type : String ,
108
- group : DISPLAY_GROUP ,
109
93
description :
110
94
'Log level in the browser (none, error, warn, info, log, verbose)' ,
111
95
processor ( opts ) {
@@ -118,26 +102,22 @@ module.exports = {
118
102
name : 'history-api-fallback' ,
119
103
type : Boolean ,
120
104
description : 'Fallback to /index.html for Single Page Applications.' ,
121
- group : RESPONSE_GROUP ,
122
105
} ,
123
106
{
124
107
name : 'compress' ,
125
108
type : Boolean ,
126
109
description : 'Enable gzip compression' ,
127
- group : RESPONSE_GROUP ,
128
110
} ,
129
111
{
130
112
name : 'public' ,
131
113
type : String ,
132
114
description : 'The public hostname/ip address of the server' ,
133
- group : CONNECTION_GROUP ,
134
115
} ,
135
116
{
136
117
name : 'firewall' ,
137
118
type : String ,
138
119
description :
139
120
'Enable/disable firewall, or set hosts that are allowed to access the dev server' ,
140
- group : CONNECTION_GROUP ,
141
121
multiple : true ,
142
122
} ,
143
123
] ,
0 commit comments