@recranet/gulp-touch
v1.0.0
Published
A gulp plugin to update file modification timestamps.
Maintainers
Readme
@recranet/gulp-touch
A gulp plugin to update file modification timestamps. Compatible with gulp 4 and 5.
Installation
npm install @recranet/gulp-touchUsage
const gulp = require('gulp');
const touch = require('@recranet/gulp-touch');
exports.default = function () {
return gulp.src('src/**/*')
.pipe(touch())
.pipe(gulp.dest('dist'));
};What it does
Updates the mtime (modification time) on each file's stat object to the current time. It does not modify files on disk directly, instead it updates the timestamp on the in-memory file stream so that dest() writes the file with the updated modification time.
License
MIT
