Описание тега gulp-rev

NoneA gulp plugin for static assets revisioning.

gulp-rev is a gulp plugin for static assets revisioning by appending a generated content hash to filenames.

The very basic example of revisioning CSS files:

var gulp = require('gulp');
var rev = require('gulp-rev');

gulp.task('default', function () {
  return gulp.src('src/*.css')
    .pipe(rev())
    .pipe(gulp.dest('dist'));
});

It's important to set files to never expire mode in order to make the plugin work correctly.