伙计们。
我在使用 gulp-watch 时遇到问题。我只能监视一个专门表达它的名字的文件,像这样:
function monitorFiles(cb){
watch('fakemessage/whatsapp/whatsapp.html', () => gulp.series(waAppHTML)())
}
如果我想看每一个html文件,它是行不通的,像这样:
function monitorFiles(cb){
watch('fakemessage/whatsapp/*.html', () => gulp.series(waAppHTML)())
}
我想监控该文件夹中所有扩展名为 html 的文件。谁能帮我解决我做错的事?
版本: “一饮而尽”:“^ 4.0.2” “gulp-watch”:“^5.0.1”