gulp-replace
gulp.task('version', function(){
gulp.src(['src/**/*.html','src/**/*.php'])
.pipe(replace('{{version}}', Date.now() ))
.pipe(gulp.dest('dist/'));
});
<link rel="stylesheet" href="assets/css/style.css?{{version}}">
The following tasks did not complete: dev, build, version
Did you forget to signal async completion?
gulp.task('version', function(){
return gulp.src(['src/**/*.html','src/**/*.php']) // Добавлен return
.pipe(replace('{{version}}', Date.now() ))
.pipe(gulp.dest('dist/'));
});