@@ -2,7 +2,6 @@ import { BuildContext } from './util/interfaces';
22import { generateContext , getConfigValue , hasConfigValue } from './util/config' ;
33import { Logger } from './util/logger' ;
44import { watch } from './watch' ;
5- import * as chalk from 'chalk' ;
65import open from './util/open' ;
76import { createNotificationServer } from './dev-server/notification-server' ;
87import { createHttpServer } from './dev-server/http-server' ;
@@ -21,6 +20,7 @@ export function serve(context?: BuildContext) {
2120 const config : ServeConfig = {
2221 httpPort : getHttpServerPort ( context ) ,
2322 host : getHttpServerHost ( context ) ,
23+ rootDir : context . rootDir ,
2424 wwwDir : context . wwwDir ,
2525 buildDir : context . buildDir ,
2626 launchBrowser : launchBrowser ( context ) ,
@@ -30,7 +30,6 @@ export function serve(context?: BuildContext) {
3030 liveReloadPort : getLiveReloadServerPort ( context ) ,
3131 notificationPort : getNotificationPort ( context ) ,
3232 useServerLogs : useServerLogs ( context ) ,
33- useNotifier : true ,
3433 useProxy : useProxy ( context ) ,
3534 notifyOnConsoleLog : sendClientConsoleLogs ( context )
3635 } ;
@@ -59,7 +58,8 @@ function onReady(config: ServeConfig, context: BuildContext) {
5958
6059 open ( openOptions . join ( '' ) , browserToLaunch ( context ) ) ;
6160 }
62- Logger . info ( chalk . green ( `dev server running: http://${ config . host } :${ config . httpPort } /` ) ) ;
61+ Logger . info ( `dev server running: http://${ config . host } :${ config . httpPort } /` , 'green' , true ) ;
62+ Logger . newLine ( ) ;
6363}
6464
6565function getHttpServerPort ( context : BuildContext ) {
0 commit comments