Closed leeyboy1992 closed 5 years ago
gulp.task('default', function (done) { gulp.watch('js/*.js',function(event){ var paths = watchPath(event, 'js/', 'dist/'); gutil.log(gutil.colors.red(paths)); }) })
执行gulp,命令,然后修改了js之后,就提示 The "path" argument must be of type string. Received type undefined
gulp.task('default', function (done) { gulp.watch('js/*.js',function(event){ var paths = watchPath(event, 'js/', 'dist/'); gutil.log(gutil.colors.red(paths)); }) })
执行gulp,命令,然后修改了js之后,就提示 The "path" argument must be of type string. Received type undefined