gulp-rev-replace
gulp-rev-replace copied to clipboard
I just find a new method to use gulp-rev-replace without gulp-useref
var rev = require("gulp-rev");
var addsrc = require('gulp-add-src');
var revReplace = require("gulp-rev-replace");
gulp.task("revision", ["dist:css", "dist:js"], function(){
return gulp.src(["dist/**/*.css", "dist/**/*.js"])
.pipe(rev())
.pipe(addsrc('./*.html'))
.pipe(revReplace())
.pipe(gulp.dest(opt.distFolder))
});
It is more simple.
Thanks. If you were to create a PR with this in the README, I'd be happy to merge it.