// 定义web服务模块,增加浏览器同步浏览gulp.task('browser-sync', ['nodemon'], function () { console.log("自动自行刷新-------------------------"); browsersync.init(null, { proxy: 'http://localhost:3000', browser: "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" ,//在谷歌下面打开 notify: false, port: 3001, files: [dist.root+"**/*"] }); });gulp.task('nodemon', function (cb) { var called = false; return nodemon({ script: 'bin/www' }).on('start', function () { if (!called) { cb(); called = true; } });});怎么使用gulp-nodemon内部删除重新启动express服务器
添加回答
举报
0/150
提交
取消