Gulp-watch:监控扩展的所有文件时出现问题

问题描述 投票:0回答:0

伙计们。

我在使用 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”

gulp gulp-watch
© www.soinside.com 2019 - 2024. All rights reserved.