Created
April 29, 2014 21:25
-
-
Save jdx/e7a53101656c5f667448 to your computer and use it in GitHub Desktop.
rev task in gulp
This file contains 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
var rev = require('gulp-rev'); | |
gulp.task('rev', ['less', 'scripts'], function() { | |
return gulp.src(['dist/**/*.css', 'dist/**/*.js']) | |
.pipe(rev()) | |
.pipe(gulp.dest('dist')) | |
.pipe(rev.manifest()) | |
.pipe(gulp.dest('dist')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment