File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,18 @@ program
27
27
. action ( function ( cmd , options ) {
28
28
console . log ( "netlify-lambda: Starting server" ) ;
29
29
var static = Boolean ( program . static ) ;
30
- var server = serve . listen ( program . port || 9000 , static , Number ( program . timeout ) || 10 ) ;
31
30
if ( static ) return ; // early terminate, don't build
32
31
build . watch ( cmd , program . config , function ( err , stats ) {
33
32
if ( err ) {
34
33
console . error ( err ) ;
35
34
return ;
36
35
}
37
-
36
+
37
+ console . log ( stats . toString ( { color : true } ) ) ;
38
+ var server = serve . listen ( program . port || 9000 , static , Number ( program . timeout ) || 10 ) ;
38
39
stats . compilation . chunks . forEach ( function ( chunk ) {
39
40
server . clearCache ( chunk . name ) ;
40
41
} ) ;
41
-
42
- console . log ( stats . toString ( { color : true } ) ) ;
43
42
} ) ;
44
43
} ) ;
45
44
You can’t perform that action at this time.
0 commit comments