11'use strict' ;
22
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-
103module . exports = {
114 devServer : [
125 {
136 name : 'host' ,
147 type : String ,
158 description : 'The hostname/ip address the server will bind to' ,
16- group : CONNECTION_GROUP ,
179 } ,
1810 {
1911 name : 'port' ,
2012 type : Number ,
2113 description : 'The port' ,
22- group : CONNECTION_GROUP ,
2314 } ,
2415 {
2516 name : 'static' ,
2617 type : [ String , Boolean ] ,
2718 description : 'A directory to serve static content from.' ,
28- group : RESPONSE_GROUP ,
2919 multiple : true ,
3020 negative : true ,
3121 } ,
@@ -38,13 +28,11 @@ module.exports = {
3828 {
3929 name : 'https' ,
4030 type : Boolean ,
41- group : SSL_GROUP ,
4231 description : 'HTTPS' ,
4332 } ,
4433 {
4534 name : 'http2' ,
4635 type : Boolean ,
47- group : SSL_GROUP ,
4836 description : 'HTTP/2, must be used with HTTPS' ,
4937 } ,
5038 {
@@ -56,7 +44,6 @@ module.exports = {
5644 name : 'client-progress' ,
5745 type : Boolean ,
5846 description : 'Print compilation progress in percentage in the browser' ,
59- group : BASIC_GROUP ,
6047 processor ( opts ) {
6148 opts . client = opts . client || { } ;
6249 opts . client . progress = opts . clientProgress ;
@@ -67,7 +54,6 @@ module.exports = {
6754 name : 'hot-only' ,
6855 type : Boolean ,
6956 description : 'Do not refresh page if HMR fails' ,
70- group : ADVANCED_GROUP ,
7157 processor ( opts ) {
7258 opts . hot = 'only' ;
7359 delete opts . hotOnly ;
@@ -77,7 +63,6 @@ module.exports = {
7763 name : 'setup-exit-signals' ,
7864 type : Boolean ,
7965 description : 'Close and exit the process on SIGINT and SIGTERM' ,
80- group : ADVANCED_GROUP ,
8166 negative : true ,
8267 } ,
8368 {
@@ -105,7 +90,6 @@ module.exports = {
10590 {
10691 name : 'client-logging' ,
10792 type : String ,
108- group : DISPLAY_GROUP ,
10993 description :
11094 'Log level in the browser (none, error, warn, info, log, verbose)' ,
11195 processor ( opts ) {
@@ -118,26 +102,22 @@ module.exports = {
118102 name : 'history-api-fallback' ,
119103 type : Boolean ,
120104 description : 'Fallback to /index.html for Single Page Applications.' ,
121- group : RESPONSE_GROUP ,
122105 } ,
123106 {
124107 name : 'compress' ,
125108 type : Boolean ,
126109 description : 'Enable gzip compression' ,
127- group : RESPONSE_GROUP ,
128110 } ,
129111 {
130112 name : 'public' ,
131113 type : String ,
132114 description : 'The public hostname/ip address of the server' ,
133- group : CONNECTION_GROUP ,
134115 } ,
135116 {
136117 name : 'firewall' ,
137118 type : String ,
138119 description :
139120 'Enable/disable firewall, or set hosts that are allowed to access the dev server' ,
140- group : CONNECTION_GROUP ,
141121 multiple : true ,
142122 } ,
143123 ] ,
0 commit comments