【发布时间】:2015-11-23 10:43:37
【问题描述】:
我有以下代码:
gulp.task('watch:Feature', function() {
gulp.watch(['./js/Feature/**/*.ts', '!./js/Feature/.gulp-tsc-tmp*.ts'], function () { console.log("Test"); });
});
我已将我的 typescript 构建任务替换为 console.log("Test"),并将名称为 .gulp-tsc-tmp-1151023-9976-e1a1h3.ts 的文件复制到 Feature 目录中,这会导致“测试”输出到控制台。
我尝试了各种排除模式,包括指定要复制到目录中的确切文件名,但似乎都不起作用。
忽略具有特定前缀的文件的正确方法是什么?
【问题讨论】:
标签: gulp gulp-watch