Created
December 20, 2017 06:18
-
-
Save TanmayDharmaraj/ce32414c25037264daa896120ccdf54d to your computer and use it in GitHub Desktop.
Sample gulp task to create revisioned file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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