我尝试将 nodemon -L (--legacy-watch) 选项设置为 gulp-nodemon 的 nodemon 配置,因为它在下面添加了空字符串值,但它不起作用。任何人都可以帮忙吗?
gulp.task('server', function () {
nodemon({
script: 'server.js',
watch: paths.server,
env: { 'NODE_ENV': 'development' },
'legacy-watch': ''
}).on('restart', 'lint');
});