Gulp:'since'和'gulp-remember'不会传递重命名的文件

时间:2017-12-26 12:51:58

标签: javascript node.js gulp

当我尝试gulp.srs({since: gulp.lastRun('taskName')})gulp-remember时,我发现重命名文件并未考虑更改文件。因此,当我重命名文件时,gulp.srs({since: gulp.lastRun('taskName')})gulp-remember过滤器都不会传递重命名文件。我该怎么办?

gulp.task('testTask', () => {
    gulp.src(globFilesSelection,
     {since: gulp.lastRun('testTask') }) // filtering on the file selection step from second gulp run
        .pipe(plugins.newer(outputPath)) // filtering already selected files from first gulp run
        // and so on, no important code from here
})

globFilesSelection的转储价值:

[ 'C:\\OpenServer\\domains\\testProject\\development\\source\\common\\images\\**\\*',
  'C:\\OpenServer\\domains\\testProject\\development\\source\\open\\images\\**\\*',
  'C:\\OpenServer\\domains\\testProject\\development\\source\\admin\\images\\**\\*',
  'C:\\OpenServer\\domains\\testProject\\development\\source\\development\\images\\**\\*' ]

0 个答案:

没有答案