File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
const path = require ( 'path' ) ;
3
3
const liveServer = require ( 'live-server' ) ;
4
+ const logger = require ( './log' ) ;
4
5
5
6
const serve = ( patternlab ) => {
6
7
@@ -11,7 +12,8 @@ const serve = (patternlab) => {
11
12
ignore : path . join ( path . resolve ( patternlab . config . paths . public . root ) ) ,
12
13
file : 'index.html' ,
13
14
logLevel : 0 , // errors only
14
- wait : 1000
15
+ wait : 1000 ,
16
+ port : 3000
15
17
} ;
16
18
17
19
// allow for overrides should they exist inside patternlab-config.json
@@ -34,6 +36,8 @@ const serve = (patternlab) => {
34
36
//start!
35
37
liveServer . start ( liveServerConfig ) ;
36
38
39
+ logger . info ( `Pattern Lab is being served from http://127.0.0.1:${ liveServerConfig . port } ` ) ;
40
+
37
41
} ;
38
42
39
43
module . exports = serve ;
You can’t perform that action at this time.
0 commit comments