File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 33const colors = require ( './colors' ) ;
44const runOpen = require ( './runOpen' ) ;
55
6- // TODO: don't emit logs when webpack-dev-server is used via Node.js API
76function status ( uri , options , logger , useColor ) {
8- if ( options . socket ) {
7+ logger . info ( `Project is running at ${ colors . info ( useColor , uri ) } ` ) ;
8+
9+ if ( options . dev && options . dev . publicPath ) {
910 logger . info (
10- `Listening to socket at ${ colors . info ( useColor , options . socket ) } `
11+ `webpack output is served from ${ colors . info (
12+ useColor ,
13+ options . dev . publicPath
14+ ) } `
1115 ) ;
12- } else {
13- logger . info ( `Project is running at ${ colors . info ( useColor , uri ) } ` ) ;
1416 }
1517
16- logger . info (
17- `webpack output is served from ${ colors . info ( useColor , options . publicPath ) } `
18- ) ;
19-
2018 if ( options . static && options . static . length > 0 ) {
2119 logger . info (
2220 `Content not from webpack is served from ${ colors . info (
You can’t perform that action at this time.
0 commit comments