为了账号安全,请及时绑定邮箱和手机立即绑定

file.path是undefined?

gulp.task("watch", function(){

// 启动livereload监听

livereload.listen();

gulp.watch("./*.html",function(file){

console.log(file);

gulp.src(file.path).pipe(livereload());

})

})

把file.path改成"./*.html",就成功了,为啥?file不存在吗?console.log(file);也并没有打印

正在回答

举报

0/150
提交
取消

file.path是undefined?

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号