Skip to content

Instantly share code, notes, and snippets.

@TanmayDharmaraj
Created December 20, 2017 06:18
Show Gist options
  • Save TanmayDharmaraj/ce32414c25037264daa896120ccdf54d to your computer and use it in GitHub Desktop.
Save TanmayDharmaraj/ce32414c25037264daa896120ccdf54d to your computer and use it in GitHub Desktop.
Sample gulp task to create revisioned file
const gulp = require('gulp');
const rev = require('gulp-rev');
gulp.task("revision", function () {
return gulp.src(["./Scripts/dist/**/*.js", "./Scripts/dist/**/*.css"])
.pipe(rev())
.pipe(gulp.dest("./Scripts/dist"))
.pipe(rev.manifest())
.pipe(gulp.dest("./Scripts"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment