File tree 3 files changed +29
-0
lines changed
3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,8 @@ Options:
93
93
--no-http2 Do not use HTTP/2.
94
94
--bonjour Broadcasts the server via ZeroConf networking on start.
95
95
--client-progress Print compilation progress in percentage in the browser.
96
+ --client-overlay Show a full-screen overlay in the browser when there are compiler errors or warnings.
97
+ --no-client-overlay Do not show a full-screen overlay in the browser when there are compiler errors or warnings.
96
98
--setup-exit-signals Close and exit the process on SIGINT and SIGTERM.
97
99
--no-setup-exit-signals Do not close and exit the process on SIGNIT and SIGTERM.
98
100
--open [value] Open the default browser, or optionally specify a browser name.
Original file line number Diff line number Diff line change @@ -98,6 +98,24 @@ module.exports = {
98
98
delete opts . clientProgress ;
99
99
} ,
100
100
} ,
101
+ {
102
+ name : 'client-overlay' ,
103
+ type : Boolean ,
104
+ configs : [
105
+ {
106
+ type : 'boolean' ,
107
+ } ,
108
+ ] ,
109
+ description :
110
+ 'Show a full-screen overlay in the browser when there are compiler errors or warnings.' ,
111
+ negatedDescription :
112
+ 'Do not show a full-screen overlay in the browser when there are compiler errors or warnings.' ,
113
+ processor ( opts ) {
114
+ opts . client = opts . client || { } ;
115
+ opts . client . overlay = opts . clientOverlay ;
116
+ delete opts . clientOverlay ;
117
+ } ,
118
+ } ,
101
119
{
102
120
name : 'setup-exit-signals' ,
103
121
type : Boolean ,
Original file line number Diff line number Diff line change @@ -291,6 +291,15 @@ describe('CLI', () => {
291
291
. catch ( done ) ;
292
292
} ) ;
293
293
294
+ it ( '--client-overlay' , ( done ) => {
295
+ testBin ( '--client-overlay' )
296
+ . then ( ( output ) => {
297
+ expect ( output . exitCode ) . toEqual ( 0 ) ;
298
+ done ( ) ;
299
+ } )
300
+ . catch ( done ) ;
301
+ } ) ;
302
+
294
303
it ( 'should log public path' , ( done ) => {
295
304
testBin (
296
305
'--no-color' ,
You can’t perform that action at this time.
0 commit comments