当我尝试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\\**\\*' ]