diff --git a/lib/index.js b/lib/index.js index a8135d8..c15a009 100644 --- a/lib/index.js +++ b/lib/index.js @@ -236,7 +236,6 @@ function run() { isCompileSuccess = true; //有文件改变时触发重启 if(fileChangeList.size){ - console.log('onWatchCompileSuccess fileChangeList',fileChangeList.size,'\n\r\n\r'); restart(fileChangeList.size); isCompileSuccess = false; fileChangeList.clear(); @@ -279,6 +278,8 @@ function run() { process.once('SIGQUIT', onSignal); // kill(15) default process.once('SIGTERM', onSignal); + + return { restart } } exports.run = run;