我想用ng build –watch& gulp watch:ng在同一个控制台上
这是我的任务代码
gulp.task(‘watch:ng’,function(){ gulp.watch(’ng / dist / ng / *’,gulp.series(‘copy-ng’));});我想要 …
我找到了一个解决方案 npm-run-all
npm-run-all
npm install npm-run-all --save-dev
"scripts": { "build:watch": "ng build --deleteOutputPath=false --watch", "gulp:watch": "gulp watch:ng", "rebuild": "run-p build:watch gulp:watch", }
npm run rebuild