Closed sygnas closed 5 years ago
@sygnas++ I've also noticed this wasn't working after upgrading to gulp4.
Same issue Ubuntu 18.04 Node 10.16.0 Gulp 4.0.2 gulp-changed 4.0.0
Easily debugged:
console.log(targetStat);
console.log({
'source': sourceFile.stat.mtimeMs,
'target': targetStat.mtimeMs
});
compareLastModifiedTime does not work properly in gulp4 environment.
This is a display of the comparison content.
The original file mtimeMs has decimal places, so the file will be copied no matter how many times it is executed.
It worked fine by adding Math.floor ().