gulp-git-mtime

Sync the mtime by git for gulp

Usage no npm install needed!

<script type="module">
  import gulpGitMtime from 'https://cdn.skypack.dev/gulp-git-mtime';
</script>

README

gulp-git-mtime

===========

Sync the mtime by git for gulp

Usage

First, install gulp-git-mtime as a development dependency:

npm install --save-dev gulp-git-mtime

Then, add it to your gulpfile.js:

Simple

var mtimer = require('gulp-git-mtime');

gulp.task('mtimer', function(){
  return gulp.src('./public/**/*.md')
    .pipe(mtimer())
    .pipe(gulp.dest('./'));
});